summaryrefslogtreecommitdiff
path: root/apps/plugins/brickmania.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/brickmania.c')
-rw-r--r--apps/plugins/brickmania.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/apps/plugins/brickmania.c b/apps/plugins/brickmania.c
index c3cdcad967..d6b1827b94 100644
--- a/apps/plugins/brickmania.c
+++ b/apps/plugins/brickmania.c
@@ -173,7 +173,7 @@ PLUGIN_HEADER
173#error No keymap defined! 173#error No keymap defined!
174#endif 174#endif
175 175
176#ifdef HAVE_TOUCHPAD 176#ifdef HAVE_TOUCHSCREEN
177#ifndef LEFT 177#ifndef LEFT
178#define LEFT BUTTON_MIDLEFT 178#define LEFT BUTTON_MIDLEFT
179#endif 179#endif
@@ -448,7 +448,7 @@ enum menu_items {
448#endif 448#endif
449 449
450 450
451#ifdef HAVE_TOUCHPAD 451#ifdef HAVE_TOUCHSCREEN
452#include "lib/touchscreen.h" 452#include "lib/touchscreen.h"
453 453
454static struct ts_mapping main_menu_items[4] = 454static struct ts_mapping main_menu_items[4] =
@@ -1024,8 +1024,8 @@ int game_menu(int when)
1024 rb->lcd_update(); 1024 rb->lcd_update();
1025 1025
1026 button = rb->button_get(true); 1026 button = rb->button_get(true);
1027#ifdef HAVE_TOUCHPAD 1027#ifdef HAVE_TOUCHSCREEN
1028 if(button & BUTTON_TOUCHPAD) 1028 if(button & BUTTON_TOUCHSCREEN)
1029 { 1029 {
1030 unsigned int result = touchscreen_map(&main_menu, rb->button_get_data() >> 16, rb->button_get_data() & 0xffff); 1030 unsigned int result = touchscreen_map(&main_menu, rb->button_get_data() >> 16, rb->button_get_data() & 0xffff);
1031 if(result != (unsigned)-1 && button & BUTTON_REL) 1031 if(result != (unsigned)-1 && button & BUTTON_REL)
@@ -1176,8 +1176,8 @@ int help(int when)
1176#ifdef RC_QUIT 1176#ifdef RC_QUIT
1177 case RC_QUIT: 1177 case RC_QUIT:
1178#endif 1178#endif
1179#ifdef HAVE_TOUCHPAD 1179#ifdef HAVE_TOUCHSCREEN
1180 case BUTTON_TOUCHPAD: 1180 case BUTTON_TOUCHSCREEN:
1181#endif 1181#endif
1182 case QUIT: 1182 case QUIT:
1183 switch (game_menu(when)) { 1183 switch (game_menu(when)) {
@@ -1871,8 +1871,8 @@ int game_loop(void)
1871 button = QUIT; 1871 button = QUIT;
1872#endif 1872#endif
1873 1873
1874#ifdef HAVE_TOUCHPAD 1874#ifdef HAVE_TOUCHSCREEN
1875 if(button & BUTTON_TOUCHPAD) 1875 if(button & BUTTON_TOUCHSCREEN)
1876 { 1876 {
1877 short touch_x, touch_y; 1877 short touch_x, touch_y;
1878 touch_x = rb->button_get_data() >> 16; 1878 touch_x = rb->button_get_data() >> 16;
@@ -1936,7 +1936,7 @@ int game_loop(void)
1936 pad_pos_x-=8; 1936 pad_pos_x-=8;
1937 } 1937 }
1938 } 1938 }
1939#ifdef HAVE_TOUCHPAD 1939#ifdef HAVE_TOUCHSCREEN
1940 } 1940 }
1941#endif 1941#endif
1942 1942