summaryrefslogtreecommitdiff
path: root/apps/plugins/reversi
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/reversi')
-rw-r--r--apps/plugins/reversi/reversi-gui.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/plugins/reversi/reversi-gui.c b/apps/plugins/reversi/reversi-gui.c
index 6f5d53da58..184b5ad7f0 100644
--- a/apps/plugins/reversi/reversi-gui.c
+++ b/apps/plugins/reversi/reversi-gui.c
@@ -610,7 +610,10 @@ enum plugin_status plugin_start(const void *parameter) {
610#ifdef HAVE_TOUCHSCREEN 610#ifdef HAVE_TOUCHSCREEN
611 int button_x, button_y; 611 int button_x, button_y;
612#endif 612#endif
613#if defined(REVERSI_BUTTON_MENU_LONGPRESS) || \
614 defined(REVERSI_BUTTON_MAKE_MOVE_SHORTPRESS)
613 int lastbutton = BUTTON_NONE; 615 int lastbutton = BUTTON_NONE;
616#endif
614 int row, col; 617 int row, col;
615 int w_cnt, b_cnt; 618 int w_cnt, b_cnt;
616 619
@@ -787,10 +790,12 @@ enum plugin_status plugin_start(const void *parameter) {
787 /* Quit if USB has been connected */ 790 /* Quit if USB has been connected */
788 return PLUGIN_USB_CONNECTED; 791 return PLUGIN_USB_CONNECTED;
789 } 792 }
790 793#if defined(REVERSI_BUTTON_MENU_LONGPRESS) || \
794 defined(REVERSI_BUTTON_MAKE_MOVE_SHORTPRESS)
791 if (button != BUTTON_NONE) { 795 if (button != BUTTON_NONE) {
792 lastbutton = button; 796 lastbutton = button;
793 } 797 }
798#endif
794 } 799 }
795 800
796 return PLUGIN_OK; 801 return PLUGIN_OK;