summaryrefslogtreecommitdiff
path: root/apps/plugins/flipit.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/flipit.c')
-rw-r--r--apps/plugins/flipit.c48
1 files changed, 39 insertions, 9 deletions
diff --git a/apps/plugins/flipit.c b/apps/plugins/flipit.c
index 58948262d9..874ddf41f7 100644
--- a/apps/plugins/flipit.c
+++ b/apps/plugins/flipit.c
@@ -208,21 +208,42 @@ PLUGIN_HEADER
208 208
209#elif CONFIG_KEYPAD == COWOND2_PAD 209#elif CONFIG_KEYPAD == COWOND2_PAD
210 210
211#define FLIPIT_LEFT BUTTON_LEFT
212#define FLIPIT_RIGHT BUTTON_RIGHT
213#define FLIPIT_UP BUTTON_UP
214#define FLIPIT_DOWN BUTTON_DOWN
215#define FLIPIT_QUIT BUTTON_POWER 211#define FLIPIT_QUIT BUTTON_POWER
216#define FLIPIT_SHUFFLE (BUTTON_LEFT|BUTTON_MENU)
217#define FLIPIT_SOLVE (BUTTON_RIGHT|BUTTON_MENU)
218#define FLIPIT_STEP_BY_STEP BUTTON_MINUS
219#define FLIPIT_TOGGLE_PRE BUTTON_PLUS
220#define FLIPIT_TOGGLE BUTTON_SELECT
221 212
222#else 213#else
223#error No keymap defined! 214#error No keymap defined!
224#endif 215#endif
225 216
217#ifdef HAVE_TOUCHPAD
218#ifndef FLIPIT_LEFT
219#define FLIPIT_LEFT BUTTON_MIDLEFT
220#endif
221#ifndef FLIPIT_RIGHT
222#define FLIPIT_RIGHT BUTTON_MIDRIGHT
223#endif
224#ifndef FLIPIT_UP
225#define FLIPIT_UP BUTTON_TOPMIDDLE
226#endif
227#ifndef FLIPIT_DOWN
228#define FLIPIT_DOWN BUTTON_BOTTOMMIDDLE
229#endif
230#ifndef FLIPIT_QUIT
231#define FLIPIT_QUIT BUTTON_TOPLEFT
232#endif
233#ifndef FLIPIT_SHUFFLE
234#define FLIPIT_SHUFFLE BUTTON_TOPRIGHT
235#endif
236#ifndef FLIPIT_SOLVE
237#define FLIPIT_SOLVE BUTTON_BOTTOMLEFT
238#endif
239#ifndef FLIPIT_STEP_BY_STEP
240#define FLIPIT_STEP_BY_STEP BUTTON_BOTTOMRIGHT
241#endif
242#ifndef FLIPIT_TOGGLE
243#define FLIPIT_TOGGLE BUTTON_CENTER
244#endif
245#endif
246
226static struct plugin_api* rb; 247static struct plugin_api* rb;
227static int spots[20]; 248static int spots[20];
228static int toggle[20]; 249static int toggle[20];
@@ -651,6 +672,15 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
651 rb->lcd_putsxy(2, 38, "[MENU..] solution"); 672 rb->lcd_putsxy(2, 38, "[MENU..] solution");
652 rb->lcd_putsxy(2, 48, "[MENU] step by step"); 673 rb->lcd_putsxy(2, 48, "[MENU] step by step");
653#endif 674#endif
675
676#ifdef HAVE_TOUCHPAD
677 rb->lcd_putsxy(2, 8, "[BOTTOMLEFT] to stop");
678 rb->lcd_putsxy(2, 18, "[CENTRE] toggle");
679 rb->lcd_putsxy(2, 28, "[TOPRIGHT] shuffle");
680 rb->lcd_putsxy(2, 38, "[BOTTOMLEFT] solution");
681 rb->lcd_putsxy(2, 48, "[BOTTOMRIGHT] step by step");
682#endif
683
654 rb->lcd_update(); 684 rb->lcd_update();
655#else /* HAVE_LCD_CHARCELLS */ 685#else /* HAVE_LCD_CHARCELLS */
656 if (!init_gfx()) 686 if (!init_gfx())