summaryrefslogtreecommitdiff
path: root/apps/plugins/flashlight.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/flashlight.c')
-rw-r--r--apps/plugins/flashlight.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/apps/plugins/flashlight.c b/apps/plugins/flashlight.c
index c3c061b590..e502d0e227 100644
--- a/apps/plugins/flashlight.c
+++ b/apps/plugins/flashlight.c
@@ -70,14 +70,27 @@ PLUGIN_HEADER
70# define FLASHLIGHT_RIGHT BUTTON_RIGHT 70# define FLASHLIGHT_RIGHT BUTTON_RIGHT
71 71
72#elif CONFIG_KEYPAD == COWOND2_PAD 72#elif CONFIG_KEYPAD == COWOND2_PAD
73# define FLASHLIGHT_LEFT BUTTON_LEFT
74# define FLASHLIGHT_RIGHT BUTTON_RIGHT
75 73
76#else 74#else
77# error Missing key definitions for this keypad 75# error Missing key definitions for this keypad
78#endif 76#endif
79#endif 77#endif
80 78
79#ifdef HAVE_TOUCHPAD
80# ifndef FLASHLIGHT_LEFT
81# define FLASHLIGHT_LEFT BUTTON_MIDLEFT
82# endif
83# ifndef FLASHLIGHT_RIGHT
84# define FLASHLIGHT_RIGHT BUTTON_MIDRIGHT
85# endif
86# ifndef FLASHLIGHT_NEXT
87# define FLASHLIGHT_NEXT BUTTON_TOPMIDDLE
88# endif
89# ifndef FLASHLIGHT_PREV
90# define FLASHLIGHT_PREV BUTTON_BOTTOMMIDDLE
91# endif
92#endif
93
81static struct plugin_api* rb; /* global api struct pointer */ 94static struct plugin_api* rb; /* global api struct pointer */
82 95
83#ifdef HAVE_LCD_COLOR 96#ifdef HAVE_LCD_COLOR