summaryrefslogtreecommitdiff
path: root/apps/plugins/stopwatch.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/stopwatch.c')
-rw-r--r--apps/plugins/stopwatch.c26
1 files changed, 21 insertions, 5 deletions
diff --git a/apps/plugins/stopwatch.c b/apps/plugins/stopwatch.c
index d4d890df0d..18ad1c48cb 100644
--- a/apps/plugins/stopwatch.c
+++ b/apps/plugins/stopwatch.c
@@ -146,15 +146,31 @@ PLUGIN_HEADER
146#define STOPWATCH_RC_QUIT BUTTON_REC 146#define STOPWATCH_RC_QUIT BUTTON_REC
147#elif CONFIG_KEYPAD == COWOND2_PAD 147#elif CONFIG_KEYPAD == COWOND2_PAD
148#define STOPWATCH_QUIT BUTTON_POWER 148#define STOPWATCH_QUIT BUTTON_POWER
149#define STOPWATCH_START_STOP BUTTON_SELECT
150#define STOPWATCH_RESET_TIMER BUTTON_MENU
151#define STOPWATCH_LAP_TIMER BUTTON_PLUS
152#define STOPWATCH_SCROLL_UP BUTTON_UP
153#define STOPWATCH_SCROLL_DOWN BUTTON_DOWN
154#else 149#else
155#error No keymap defined! 150#error No keymap defined!
156#endif 151#endif
157 152
153#ifdef HAVE_TOUCHPAD
154#ifndef STOPWATCH_QUIT
155#define STOPWATCH_QUIT BUTTON_TOPLEFT
156#endif
157#ifndef STOPWATCH_START_STOP
158#define STOPWATCH_START_STOP BUTTON_CENTER
159#endif
160#ifndef STOPWATCH_RESET_TIMER
161#define STOPWATCH_RESET_TIMER BUTTON_MIDRIGHT
162#endif
163#ifndef STOPWATCH_LAP_TIMER
164#define STOPWATCH_LAP_TIMER BUTTON_MIDLEFT
165#endif
166#ifndef STOPWATCH_SCROLL_UP
167#define STOPWATCH_SCROLL_UP BUTTON_TOPMIDDLE
168#endif
169#ifndef STOPWATCH_SCROLL_DOWN
170#define STOPWATCH_SCROLL_DOWN BUTTON_BOTTOMMIDDLE
171#endif
172#endif
173
158static struct plugin_api* rb; 174static struct plugin_api* rb;
159 175
160static int stopwatch = 0; 176static int stopwatch = 0;