summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/CATEGORIES2
-rw-r--r--apps/plugins/battery_bench.c2
-rw-r--r--apps/plugins/blackjack.c4
-rw-r--r--apps/plugins/bounce.c2
-rw-r--r--apps/plugins/brickmania.c18
-rw-r--r--apps/plugins/calculator.c8
-rw-r--r--apps/plugins/chessbox/chessbox_pgn.h2
-rw-r--r--apps/plugins/chessclock.c2
-rw-r--r--apps/plugins/chip8.c2
-rw-r--r--apps/plugins/chopper.c2
-rw-r--r--apps/plugins/cube.c2
-rw-r--r--apps/plugins/doom/i_video.c2
-rw-r--r--apps/plugins/fireworks.c2
-rw-r--r--apps/plugins/flipit.c4
-rw-r--r--apps/plugins/invadrox.c2
-rw-r--r--apps/plugins/jewels.c4
-rw-r--r--apps/plugins/jpeg.c2
-rw-r--r--apps/plugins/lamp.c2
-rw-r--r--apps/plugins/lib/SOURCES2
-rw-r--r--apps/plugins/lib/pluginlib_actions.c8
-rw-r--r--apps/plugins/lib/touchscreen.c4
-rw-r--r--apps/plugins/lib/touchscreen.h6
-rw-r--r--apps/plugins/logo.c2
-rw-r--r--apps/plugins/mandelbrot.c2
-rw-r--r--apps/plugins/matrix.c2
-rw-r--r--apps/plugins/midi/midiplay.c2
-rw-r--r--apps/plugins/minesweeper.c18
-rw-r--r--apps/plugins/mosaique.c2
-rw-r--r--apps/plugins/mp3_encoder.c2
-rw-r--r--apps/plugins/mpegplayer/mpeg_settings.c2
-rw-r--r--apps/plugins/mpegplayer/mpegplayer.c4
-rw-r--r--apps/plugins/oscilloscope.c2
-rw-r--r--apps/plugins/pacbox/pacbox.h2
-rw-r--r--apps/plugins/pegbox.c22
-rw-r--r--apps/plugins/plasma.c8
-rw-r--r--apps/plugins/pong.c8
-rw-r--r--apps/plugins/reversi/reversi-gui.h2
-rw-r--r--apps/plugins/rockblox.c2
-rw-r--r--apps/plugins/rockboy/rockboy.c4
-rw-r--r--apps/plugins/rockpaint.c2
-rw-r--r--apps/plugins/sliding_puzzle.c4
-rw-r--r--apps/plugins/snake.c2
-rw-r--r--apps/plugins/snake2.c2
-rw-r--r--apps/plugins/sokoban.c4
-rw-r--r--apps/plugins/solitaire.c2
-rw-r--r--apps/plugins/spacerocks.c2
-rw-r--r--apps/plugins/star.c4
-rw-r--r--apps/plugins/starfield.c2
-rw-r--r--apps/plugins/stopwatch.c2
-rw-r--r--apps/plugins/sudoku/sudoku.h2
-rw-r--r--apps/plugins/superdom.c2
-rw-r--r--apps/plugins/test_touchscreen.c (renamed from apps/plugins/test_touchpad.c)24
-rw-r--r--apps/plugins/viewer.c2
-rw-r--r--apps/plugins/vu_meter.c2
-rw-r--r--apps/plugins/wormlet.c2
-rw-r--r--apps/plugins/xobox.c2
-rw-r--r--apps/plugins/zxbox/keymaps.h2
-rw-r--r--apps/plugins/zxbox/zxbox_keyb.c2
58 files changed, 119 insertions, 117 deletions
diff --git a/apps/plugins/CATEGORIES b/apps/plugins/CATEGORIES
index a8110593f0..1cf530b5af 100644
--- a/apps/plugins/CATEGORIES
+++ b/apps/plugins/CATEGORIES
@@ -89,7 +89,7 @@ test_fps,apps
89test_grey,apps 89test_grey,apps
90test_sampr,apps 90test_sampr,apps
91test_scanrate,apps 91test_scanrate,apps
92test_touchpad,apps 92test_touchscreen,apps
93test_viewports,apps 93test_viewports,apps
94text_editor,apps 94text_editor,apps
95vbrfix,viewers 95vbrfix,viewers
diff --git a/apps/plugins/battery_bench.c b/apps/plugins/battery_bench.c
index 90e9b405c8..4361bbc491 100644
--- a/apps/plugins/battery_bench.c
+++ b/apps/plugins/battery_bench.c
@@ -154,7 +154,7 @@ PLUGIN_HEADER
154#error No keymap defined! 154#error No keymap defined!
155#endif 155#endif
156 156
157#ifdef HAVE_TOUCHPAD 157#ifdef HAVE_TOUCHSCREEN
158#ifndef BATTERY_ON 158#ifndef BATTERY_ON
159#define BATTERY_ON BUTTON_CENTER 159#define BATTERY_ON BUTTON_CENTER
160#endif 160#endif
diff --git a/apps/plugins/blackjack.c b/apps/plugins/blackjack.c
index 7d69e8f602..e6a9fbd8cd 100644
--- a/apps/plugins/blackjack.c
+++ b/apps/plugins/blackjack.c
@@ -261,7 +261,7 @@ PLUGIN_HEADER
261#error No keymap defined! 261#error No keymap defined!
262#endif 262#endif
263 263
264#ifdef HAVE_TOUCHPAD 264#ifdef HAVE_TOUCHSCREEN
265#ifndef BJACK_START 265#ifndef BJACK_START
266#define BJACK_START BUTTON_CENTER 266#define BJACK_START BUTTON_CENTER
267#endif 267#endif
@@ -1238,7 +1238,7 @@ static unsigned int blackjack_menu(struct game_context* bj) {
1238 rb->lcd_puts(0, 10, str); 1238 rb->lcd_puts(0, 10, str);
1239#endif 1239#endif
1240 1240
1241#ifdef HAVE_TOUCHPAD 1241#ifdef HAVE_TOUCHSCREEN
1242 rb->lcd_puts(0, 2, "LCD CENTRE to start & to hit"); 1242 rb->lcd_puts(0, 2, "LCD CENTRE to start & to hit");
1243 rb->lcd_puts(0, 3, "LCD BOTTOMLEFT to stay"); 1243 rb->lcd_puts(0, 3, "LCD BOTTOMLEFT to stay");
1244 rb->lcd_puts(0, 4, "LCD BOTTOMRIGHT to save/resume"); 1244 rb->lcd_puts(0, 4, "LCD BOTTOMRIGHT to save/resume");
diff --git a/apps/plugins/bounce.c b/apps/plugins/bounce.c
index bae5b8285b..65aaa3ef09 100644
--- a/apps/plugins/bounce.c
+++ b/apps/plugins/bounce.c
@@ -148,7 +148,7 @@ PLUGIN_HEADER
148#error No keymap defined! 148#error No keymap defined!
149#endif 149#endif
150 150
151#ifdef HAVE_TOUCHPAD 151#ifdef HAVE_TOUCHSCREEN
152#ifndef BOUNCE_LEFT 152#ifndef BOUNCE_LEFT
153#define BOUNCE_LEFT BUTTON_MIDLEFT 153#define BOUNCE_LEFT BUTTON_MIDLEFT
154#endif 154#endif
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
diff --git a/apps/plugins/calculator.c b/apps/plugins/calculator.c
index cbbbeaa293..3a3947d81a 100644
--- a/apps/plugins/calculator.c
+++ b/apps/plugins/calculator.c
@@ -265,7 +265,7 @@ PLUGIN_HEADER
265#error No keymap defined! 265#error No keymap defined!
266#endif 266#endif
267 267
268#ifdef HAVE_TOUCHPAD 268#ifdef HAVE_TOUCHSCREEN
269#ifndef CALCULATOR_LEFT 269#ifndef CALCULATOR_LEFT
270#define CALCULATOR_LEFT BUTTON_MIDLEFT 270#define CALCULATOR_LEFT BUTTON_MIDLEFT
271#endif 271#endif
@@ -1549,8 +1549,8 @@ enum plugin_status plugin_start(const struct plugin_api* api, const void* parame
1549 1549
1550 while (calStatus != cal_exit ) { 1550 while (calStatus != cal_exit ) {
1551 btn = rb->button_get_w_tmo(HZ/2); 1551 btn = rb->button_get_w_tmo(HZ/2);
1552#ifdef HAVE_TOUCHPAD 1552#ifdef HAVE_TOUCHSCREEN
1553 if(btn & BUTTON_TOUCHPAD) 1553 if(btn & BUTTON_TOUCHSCREEN)
1554 { 1554 {
1555 struct ts_raster_result res; 1555 struct ts_raster_result res;
1556 if(touchscreen_map_raster(&calc_raster, rb->button_get_data() >> 16, rb->button_get_data() & 0xffff, &res) == 1) 1556 if(touchscreen_map_raster(&calc_raster, rb->button_get_data() >> 16, rb->button_get_data() & 0xffff, &res) == 1)
@@ -1575,7 +1575,7 @@ enum plugin_status plugin_start(const struct plugin_api* api, const void* parame
1575 sciButtonsProcess(); 1575 sciButtonsProcess();
1576 break; 1576 break;
1577 } 1577 }
1578 btn = BUTTON_TOUCHPAD; 1578 btn = BUTTON_TOUCHSCREEN;
1579 } 1579 }
1580 } 1580 }
1581 } 1581 }
diff --git a/apps/plugins/chessbox/chessbox_pgn.h b/apps/plugins/chessbox/chessbox_pgn.h
index 48357ee5fa..2054316770 100644
--- a/apps/plugins/chessbox/chessbox_pgn.h
+++ b/apps/plugins/chessbox/chessbox_pgn.h
@@ -274,7 +274,7 @@
274#error No keymap defined! 274#error No keymap defined!
275#endif 275#endif
276 276
277#ifdef HAVE_TOUCHPAD 277#ifdef HAVE_TOUCHSCREEN
278#ifndef CB_LEVEL 278#ifndef CB_LEVEL
279#define CB_LEVEL BUTTON_TOPLEFT 279#define CB_LEVEL BUTTON_TOPLEFT
280#endif 280#endif
diff --git a/apps/plugins/chessclock.c b/apps/plugins/chessclock.c
index d808956f9d..b4d2ed0547 100644
--- a/apps/plugins/chessclock.c
+++ b/apps/plugins/chessclock.c
@@ -194,7 +194,7 @@ PLUGIN_HEADER
194#error No keymap defined! 194#error No keymap defined!
195#endif 195#endif
196 196
197#ifdef HAVE_TOUCHPAD 197#ifdef HAVE_TOUCHSCREEN
198#ifndef CHC_SETTINGS_OK 198#ifndef CHC_SETTINGS_OK
199#define CHC_SETTINGS_OK BUTTON_CENTER 199#define CHC_SETTINGS_OK BUTTON_CENTER
200#endif 200#endif
diff --git a/apps/plugins/chip8.c b/apps/plugins/chip8.c
index 6bddfa23c6..be624ed711 100644
--- a/apps/plugins/chip8.c
+++ b/apps/plugins/chip8.c
@@ -1086,7 +1086,7 @@ STATIC void chip8 (void)
1086#error No keymap defined! 1086#error No keymap defined!
1087#endif 1087#endif
1088 1088
1089#ifdef HAVE_TOUCHPAD 1089#ifdef HAVE_TOUCHSCREEN
1090#ifndef CHIP8_OFF 1090#ifndef CHIP8_OFF
1091#define CHIP8_OFF BUTTON_TOPLEFT 1091#define CHIP8_OFF BUTTON_TOPLEFT
1092#endif 1092#endif
diff --git a/apps/plugins/chopper.c b/apps/plugins/chopper.c
index 9b854ae0e1..c61d012898 100644
--- a/apps/plugins/chopper.c
+++ b/apps/plugins/chopper.c
@@ -112,7 +112,7 @@ Still To do:
112#error No keymap defined! 112#error No keymap defined!
113#endif 113#endif
114 114
115#ifdef HAVE_TOUCHPAD 115#ifdef HAVE_TOUCHSCREEN
116#ifndef QUIT 116#ifndef QUIT
117#define QUIT BUTTON_TOPLEFT 117#define QUIT BUTTON_TOPLEFT
118#endif 118#endif
diff --git a/apps/plugins/cube.c b/apps/plugins/cube.c
index 55721fb6c2..35737a65b3 100644
--- a/apps/plugins/cube.c
+++ b/apps/plugins/cube.c
@@ -250,7 +250,7 @@ PLUGIN_HEADER
250#error No keymap defined! 250#error No keymap defined!
251#endif 251#endif
252 252
253#ifdef HAVE_TOUCHPAD 253#ifdef HAVE_TOUCHSCREEN
254// not enough touchfields, so CUBE_QUIT have to be 254// not enough touchfields, so CUBE_QUIT have to be
255// mapped to a real button 255// mapped to a real button
256//ifndef CUBE_QUIT 256//ifndef CUBE_QUIT
diff --git a/apps/plugins/doom/i_video.c b/apps/plugins/doom/i_video.c
index cb6d967b0c..58be699a5f 100644
--- a/apps/plugins/doom/i_video.c
+++ b/apps/plugins/doom/i_video.c
@@ -272,7 +272,7 @@ void I_ShutdownGraphics(void)
272#error Keymap not defined! 272#error Keymap not defined!
273#endif 273#endif
274 274
275#ifdef HAVE_TOUCHPAD 275#ifdef HAVE_TOUCHSCREEN
276#ifndef DOOMBUTTON_UP 276#ifndef DOOMBUTTON_UP
277#define DOOMBUTTON_UP BUTTON_TOPMIDDLE 277#define DOOMBUTTON_UP BUTTON_TOPMIDDLE
278#endif 278#endif
diff --git a/apps/plugins/fireworks.c b/apps/plugins/fireworks.c
index f3beb6532a..43cd04a985 100644
--- a/apps/plugins/fireworks.c
+++ b/apps/plugins/fireworks.c
@@ -77,7 +77,7 @@ static const struct plugin_api* rb;
77#error No keymap defined! 77#error No keymap defined!
78#endif 78#endif
79 79
80#ifdef HAVE_TOUCHPAD 80#ifdef HAVE_TOUCHSCREEN
81#ifndef BTN_MENU 81#ifndef BTN_MENU
82#define BTN_MENU (BUTTON_TOPLEFT|BUTTON_REL) 82#define BTN_MENU (BUTTON_TOPLEFT|BUTTON_REL)
83#endif 83#endif
diff --git a/apps/plugins/flipit.c b/apps/plugins/flipit.c
index 9d3a9a25f4..6eff1472df 100644
--- a/apps/plugins/flipit.c
+++ b/apps/plugins/flipit.c
@@ -216,7 +216,7 @@ PLUGIN_HEADER
216#error No keymap defined! 216#error No keymap defined!
217#endif 217#endif
218 218
219#ifdef HAVE_TOUCHPAD 219#ifdef HAVE_TOUCHSCREEN
220#ifndef FLIPIT_LEFT 220#ifndef FLIPIT_LEFT
221#define FLIPIT_LEFT BUTTON_MIDLEFT 221#define FLIPIT_LEFT BUTTON_MIDLEFT
222#endif 222#endif
@@ -675,7 +675,7 @@ enum plugin_status plugin_start(const struct plugin_api* api, const void* parame
675 rb->lcd_putsxy(2, 48, "[MENU] step by step"); 675 rb->lcd_putsxy(2, 48, "[MENU] step by step");
676#endif 676#endif
677 677
678#ifdef HAVE_TOUCHPAD 678#ifdef HAVE_TOUCHSCREEN
679 rb->lcd_putsxy(2, 8, "[BOTTOMLEFT] to stop"); 679 rb->lcd_putsxy(2, 8, "[BOTTOMLEFT] to stop");
680 rb->lcd_putsxy(2, 18, "[CENTRE] toggle"); 680 rb->lcd_putsxy(2, 18, "[CENTRE] toggle");
681 rb->lcd_putsxy(2, 28, "[TOPRIGHT] shuffle"); 681 rb->lcd_putsxy(2, 28, "[TOPRIGHT] shuffle");
diff --git a/apps/plugins/invadrox.c b/apps/plugins/invadrox.c
index 44094c254b..a46580ad95 100644
--- a/apps/plugins/invadrox.c
+++ b/apps/plugins/invadrox.c
@@ -124,7 +124,7 @@ PLUGIN_HEADER
124 #error INVADROX: Unsupported keypad 124 #error INVADROX: Unsupported keypad
125#endif 125#endif
126 126
127#ifdef HAVE_TOUCHPAD 127#ifdef HAVE_TOUCHSCREEN
128#ifndef QUIT 128#ifndef QUIT
129#define QUIT BUTTON_TOPLEFT 129#define QUIT BUTTON_TOPLEFT
130#endif 130#endif
diff --git a/apps/plugins/jewels.c b/apps/plugins/jewels.c
index 7f4cd4bd41..6f547fdf39 100644
--- a/apps/plugins/jewels.c
+++ b/apps/plugins/jewels.c
@@ -157,7 +157,7 @@ PLUGIN_HEADER
157#error No keymap defined! 157#error No keymap defined!
158#endif 158#endif
159 159
160#ifdef HAVE_TOUCHPAD 160#ifdef HAVE_TOUCHSCREEN
161#ifndef JEWELS_UP 161#ifndef JEWELS_UP
162#define JEWELS_UP BUTTON_TOPMIDDLE 162#define JEWELS_UP BUTTON_TOPMIDDLE
163#endif 163#endif
@@ -1610,7 +1610,7 @@ static int jewels_main(struct game_context* bj) {
1610 #warning: missing help text. 1610 #warning: missing help text.
1611#endif 1611#endif
1612 1612
1613#ifdef HAVE_TOUCHPAD 1613#ifdef HAVE_TOUCHSCREEN
1614 rb->lcd_puts(0, 2, "Swap pairs of jewels to"); 1614 rb->lcd_puts(0, 2, "Swap pairs of jewels to");
1615 rb->lcd_puts(0, 3, "form connected segments"); 1615 rb->lcd_puts(0, 3, "form connected segments");
1616 rb->lcd_puts(0, 4, "of three or more of the"); 1616 rb->lcd_puts(0, 4, "of three or more of the");
diff --git a/apps/plugins/jpeg.c b/apps/plugins/jpeg.c
index ffc9d49a98..142e982d0b 100644
--- a/apps/plugins/jpeg.c
+++ b/apps/plugins/jpeg.c
@@ -218,7 +218,7 @@ PLUGIN_HEADER
218#error No keymap defined! 218#error No keymap defined!
219#endif 219#endif
220 220
221#ifdef HAVE_TOUCHPAD 221#ifdef HAVE_TOUCHSCREEN
222#ifndef JPEG_UP 222#ifndef JPEG_UP
223#define JPEG_UP BUTTON_TOPMIDDLE 223#define JPEG_UP BUTTON_TOPMIDDLE
224#endif 224#endif
diff --git a/apps/plugins/lamp.c b/apps/plugins/lamp.c
index 8a673944bc..a938d7a7f2 100644
--- a/apps/plugins/lamp.c
+++ b/apps/plugins/lamp.c
@@ -79,7 +79,7 @@ PLUGIN_HEADER
79#endif 79#endif
80#endif 80#endif
81 81
82#ifdef HAVE_TOUCHPAD 82#ifdef HAVE_TOUCHSCREEN
83# ifndef LAMP_LEFT 83# ifndef LAMP_LEFT
84# define LAMP_LEFT BUTTON_MIDLEFT 84# define LAMP_LEFT BUTTON_MIDLEFT
85# endif 85# endif
diff --git a/apps/plugins/lib/SOURCES b/apps/plugins/lib/SOURCES
index 775db0587e..d21f21af15 100644
--- a/apps/plugins/lib/SOURCES
+++ b/apps/plugins/lib/SOURCES
@@ -39,7 +39,7 @@ bmp_smooth_scale.c
39#endif 39#endif
40pluginlib_actions.c 40pluginlib_actions.c
41helper.c 41helper.c
42#ifdef HAVE_TOUCHPAD 42#ifdef HAVE_TOUCHSCREEN
43touchscreen.c 43touchscreen.c
44#endif 44#endif
45md5.c 45md5.c
diff --git a/apps/plugins/lib/pluginlib_actions.c b/apps/plugins/lib/pluginlib_actions.c
index 996e2178b4..a6bf28302f 100644
--- a/apps/plugins/lib/pluginlib_actions.c
+++ b/apps/plugins/lib/pluginlib_actions.c
@@ -67,7 +67,7 @@ const struct button_mapping remote_directions[] =
67 67
68const struct button_mapping generic_directions[] = 68const struct button_mapping generic_directions[] =
69{ 69{
70#ifdef HAVE_TOUCHPAD 70#ifdef HAVE_TOUCHSCREEN
71 { PLA_UP, BUTTON_TOPMIDDLE, BUTTON_NONE}, 71 { PLA_UP, BUTTON_TOPMIDDLE, BUTTON_NONE},
72 { PLA_DOWN, BUTTON_BOTTOMMIDDLE, BUTTON_NONE}, 72 { PLA_DOWN, BUTTON_BOTTOMMIDDLE, BUTTON_NONE},
73 { PLA_LEFT, BUTTON_MIDLEFT, BUTTON_NONE}, 73 { PLA_LEFT, BUTTON_MIDLEFT, BUTTON_NONE},
@@ -162,7 +162,7 @@ const struct button_mapping generic_directions[] =
162 162
163const struct button_mapping generic_left_right_fire[] = 163const struct button_mapping generic_left_right_fire[] =
164{ 164{
165#ifdef HAVE_TOUCHPAD 165#ifdef HAVE_TOUCHSCREEN
166 { PLA_LEFT, BUTTON_MIDLEFT, BUTTON_NONE}, 166 { PLA_LEFT, BUTTON_MIDLEFT, BUTTON_NONE},
167 { PLA_LEFT_REPEAT, BUTTON_MIDLEFT|BUTTON_REPEAT, BUTTON_NONE}, 167 { PLA_LEFT_REPEAT, BUTTON_MIDLEFT|BUTTON_REPEAT, BUTTON_NONE},
168 { PLA_RIGHT, BUTTON_MIDRIGHT, BUTTON_NONE}, 168 { PLA_RIGHT, BUTTON_MIDRIGHT, BUTTON_NONE},
@@ -266,7 +266,7 @@ const struct button_mapping generic_left_right_fire[] =
266/* these were taken from the bubbles plugin, so may need tweaking */ 266/* these were taken from the bubbles plugin, so may need tweaking */
267const struct button_mapping generic_actions[] = 267const struct button_mapping generic_actions[] =
268{ 268{
269#ifdef HAVE_TOUCHPAD 269#ifdef HAVE_TOUCHSCREEN
270 {PLA_QUIT, BUTTON_BOTTOMRIGHT, BUTTON_NONE}, 270 {PLA_QUIT, BUTTON_BOTTOMRIGHT, BUTTON_NONE},
271 {PLA_START, BUTTON_CENTER, BUTTON_NONE}, 271 {PLA_START, BUTTON_CENTER, BUTTON_NONE},
272 {PLA_MENU, BUTTON_TOPLEFT, BUTTON_NONE}, 272 {PLA_MENU, BUTTON_TOPLEFT, BUTTON_NONE},
@@ -399,7 +399,7 @@ const struct button_mapping generic_actions[] =
399 399
400const struct button_mapping generic_increase_decrease[] = 400const struct button_mapping generic_increase_decrease[] =
401{ 401{
402#ifdef HAVE_TOUCHPAD 402#ifdef HAVE_TOUCHSCREEN
403 {PLA_INC, BUTTON_TOPMIDDLE, BUTTON_NONE}, 403 {PLA_INC, BUTTON_TOPMIDDLE, BUTTON_NONE},
404 {PLA_DEC, BUTTON_BOTTOMMIDDLE, BUTTON_NONE}, 404 {PLA_DEC, BUTTON_BOTTOMMIDDLE, BUTTON_NONE},
405 {PLA_INC_REPEAT, BUTTON_TOPMIDDLE|BUTTON_REPEAT, BUTTON_NONE}, 405 {PLA_INC_REPEAT, BUTTON_TOPMIDDLE|BUTTON_REPEAT, BUTTON_NONE},
diff --git a/apps/plugins/lib/touchscreen.c b/apps/plugins/lib/touchscreen.c
index cda2f46f1e..5b7517349a 100644
--- a/apps/plugins/lib/touchscreen.c
+++ b/apps/plugins/lib/touchscreen.c
@@ -21,7 +21,7 @@
21 21
22#include "plugin.h" 22#include "plugin.h"
23 23
24#ifdef HAVE_TOUCHPAD 24#ifdef HAVE_TOUCHSCREEN
25 25
26#include "touchscreen.h" 26#include "touchscreen.h"
27 27
@@ -132,4 +132,4 @@ struct ts_raster_button_result touchscreen_raster_map_button(struct ts_raster_bu
132 return ret; 132 return ret;
133} 133}
134 134
135#endif /* HAVE_TOUCHPAD */ 135#endif /* HAVE_TOUCHSCREEN */
diff --git a/apps/plugins/lib/touchscreen.h b/apps/plugins/lib/touchscreen.h
index 7050db669b..cd5251e46f 100644
--- a/apps/plugins/lib/touchscreen.h
+++ b/apps/plugins/lib/touchscreen.h
@@ -22,7 +22,9 @@
22#ifndef _PLUGIN_LIB_TOUCHSCREEN_H_ 22#ifndef _PLUGIN_LIB_TOUCHSCREEN_H_
23#define _PLUGIN_LIB_TOUCHSCREEN_H_ 23#define _PLUGIN_LIB_TOUCHSCREEN_H_
24 24
25#ifdef HAVE_TOUCHPAD 25#include "plugin.h"
26
27#ifdef HAVE_TOUCHSCREEN
26 28
27struct ts_mapping 29struct ts_mapping
28{ 30{
@@ -88,5 +90,5 @@ struct ts_raster_button_result
88 90
89struct ts_raster_button_result touchscreen_raster_map_button(struct ts_raster_button_mapping *map, int x, int y, int button); 91struct ts_raster_button_result touchscreen_raster_map_button(struct ts_raster_button_mapping *map, int x, int y, int button);
90 92
91#endif /* HAVE_TOUCHPAD */ 93#endif /* HAVE_TOUCHSCREEN */
92#endif /* _PLUGIN_LIB_TOUCHSCREEN_H_ */ 94#endif /* _PLUGIN_LIB_TOUCHSCREEN_H_ */
diff --git a/apps/plugins/logo.c b/apps/plugins/logo.c
index dd03dd800c..779ce8845d 100644
--- a/apps/plugins/logo.c
+++ b/apps/plugins/logo.c
@@ -160,7 +160,7 @@ const unsigned char rockbox16x7[] = {
160#endif 160#endif
161#endif /* CONFIG_REMOTE_KEYPAD */ 161#endif /* CONFIG_REMOTE_KEYPAD */
162 162
163#ifdef HAVE_TOUCHPAD 163#ifdef HAVE_TOUCHSCREEN
164#ifndef LP_QUIT 164#ifndef LP_QUIT
165#define LP_QUIT BUTTON_TOPLEFT 165#define LP_QUIT BUTTON_TOPLEFT
166#endif 166#endif
diff --git a/apps/plugins/mandelbrot.c b/apps/plugins/mandelbrot.c
index e4e83111e3..ca7f708fc8 100644
--- a/apps/plugins/mandelbrot.c
+++ b/apps/plugins/mandelbrot.c
@@ -227,7 +227,7 @@ PLUGIN_HEADER
227#error No keymap defined! 227#error No keymap defined!
228#endif 228#endif
229 229
230#ifdef HAVE_TOUCHPAD 230#ifdef HAVE_TOUCHSCREEN
231#ifndef MANDELBROT_UP 231#ifndef MANDELBROT_UP
232#define MANDELBROT_UP BUTTON_TOPMIDDLE 232#define MANDELBROT_UP BUTTON_TOPMIDDLE
233#endif 233#endif
diff --git a/apps/plugins/matrix.c b/apps/plugins/matrix.c
index 2b63be90e7..fe54b2938a 100644
--- a/apps/plugins/matrix.c
+++ b/apps/plugins/matrix.c
@@ -103,7 +103,7 @@ extern const fb_data matrix_normal[];
103#error Unsupported keypad 103#error Unsupported keypad
104#endif 104#endif
105 105
106#ifdef HAVE_TOUCHPAD 106#ifdef HAVE_TOUCHSCREEN
107#ifndef MATRIX_EXIT 107#ifndef MATRIX_EXIT
108#define MATRIX_EXIT BUTTON_TOPLEFT 108#define MATRIX_EXIT BUTTON_TOPLEFT
109#endif 109#endif
diff --git a/apps/plugins/midi/midiplay.c b/apps/plugins/midi/midiplay.c
index a394aaccb1..d76e0382ad 100644
--- a/apps/plugins/midi/midiplay.c
+++ b/apps/plugins/midi/midiplay.c
@@ -154,7 +154,7 @@ PLUGIN_IRAM_DECLARE
154#error No keymap defined! 154#error No keymap defined!
155#endif 155#endif
156 156
157#ifdef HAVE_TOUCHPAD 157#ifdef HAVE_TOUCHSCREEN
158#ifndef BTN_QUIT 158#ifndef BTN_QUIT
159#define BTN_QUIT BUTTON_TOPLEFT 159#define BTN_QUIT BUTTON_TOPLEFT
160#endif 160#endif
diff --git a/apps/plugins/minesweeper.c b/apps/plugins/minesweeper.c
index 266d12fc8d..c37c9e8795 100644
--- a/apps/plugins/minesweeper.c
+++ b/apps/plugins/minesweeper.c
@@ -192,7 +192,7 @@ enum minesweeper_status {
192#error No keymap defined! 192#error No keymap defined!
193#endif 193#endif
194 194
195#ifdef HAVE_TOUCHPAD 195#ifdef HAVE_TOUCHSCREEN
196#ifndef MINESWP_QUIT 196#ifndef MINESWP_QUIT
197# define MINESWP_QUIT BUTTON_TOPLEFT 197# define MINESWP_QUIT BUTTON_TOPLEFT
198#endif 198#endif
@@ -305,7 +305,7 @@ int stack_pos = 0;
305/* a usefull string for snprintf */ 305/* a usefull string for snprintf */
306char str[30]; 306char str[30];
307 307
308#ifdef HAVE_TOUCHPAD 308#ifdef HAVE_TOUCHSCREEN
309 309
310#include "lib/touchscreen.h" 310#include "lib/touchscreen.h"
311static struct ts_raster mine_raster = { 0, 0, MAX_WIDTH, MAX_HEIGHT, TileSize, TileSize }; 311static struct ts_raster mine_raster = { 0, 0, MAX_WIDTH, MAX_HEIGHT, TileSize, TileSize };
@@ -485,7 +485,7 @@ void mine_show( void )
485 button = rb->button_get(true); 485 button = rb->button_get(true);
486 while( ( button == BUTTON_NONE ) 486 while( ( button == BUTTON_NONE )
487 || ( button & (BUTTON_REL|BUTTON_REPEAT) ) ); 487 || ( button & (BUTTON_REL|BUTTON_REPEAT) ) );
488#ifdef HAVE_TOUCHPAD 488#ifdef HAVE_TOUCHSCREEN
489 button = BUTTON_NONE; 489 button = BUTTON_NONE;
490#endif 490#endif
491} 491}
@@ -582,7 +582,7 @@ enum minesweeper_status minesweeper( void )
582 top = (LCD_HEIGHT-height*TileSize)/2; 582 top = (LCD_HEIGHT-height*TileSize)/2;
583 left = (LCD_WIDTH-width*TileSize)/2; 583 left = (LCD_WIDTH-width*TileSize)/2;
584 584
585#ifdef HAVE_TOUCHPAD 585#ifdef HAVE_TOUCHSCREEN
586 mine_raster.tl_x = left; 586 mine_raster.tl_x = left;
587 mine_raster.tl_y = top; 587 mine_raster.tl_y = top;
588 mine_raster.width = width*TileSize; 588 mine_raster.width = width*TileSize;
@@ -633,21 +633,21 @@ enum minesweeper_status minesweeper( void )
633 rb->lcd_update(); 633 rb->lcd_update();
634 634
635 button = rb->button_get(true); 635 button = rb->button_get(true);
636#ifdef HAVE_TOUCHPAD 636#ifdef HAVE_TOUCHSCREEN
637 if(button & BUTTON_TOUCHPAD) 637 if(button & BUTTON_TOUCHSCREEN)
638 { 638 {
639 struct ts_raster_result res; 639 struct ts_raster_result res;
640 if(touchscreen_map_raster(&mine_raster, rb->button_get_data() >> 16, rb->button_get_data() & 0xffff, &res) == 1) 640 if(touchscreen_map_raster(&mine_raster, rb->button_get_data() >> 16, rb->button_get_data() & 0xffff, &res) == 1)
641 { 641 {
642 button &= ~BUTTON_TOUCHPAD; 642 button &= ~BUTTON_TOUCHSCREEN;
643 lastbutton &= ~BUTTON_TOUCHPAD; 643 lastbutton &= ~BUTTON_TOUCHSCREEN;
644 644
645 if(button & BUTTON_REPEAT && lastbutton != MINESWP_TOGGLE && lastbutton ^ BUTTON_REPEAT) 645 if(button & BUTTON_REPEAT && lastbutton != MINESWP_TOGGLE && lastbutton ^ BUTTON_REPEAT)
646 button = MINESWP_TOGGLE; 646 button = MINESWP_TOGGLE;
647 else if(button == BUTTON_REL && lastbutton ^ BUTTON_REPEAT) 647 else if(button == BUTTON_REL && lastbutton ^ BUTTON_REPEAT)
648 button = MINESWP_DISCOVER; 648 button = MINESWP_DISCOVER;
649 else 649 else
650 button |= BUTTON_TOUCHPAD; 650 button |= BUTTON_TOUCHSCREEN;
651 651
652 x = res.x; 652 x = res.x;
653 y = res.y; 653 y = res.y;
diff --git a/apps/plugins/mosaique.c b/apps/plugins/mosaique.c
index dbd647330f..b750efb6b3 100644
--- a/apps/plugins/mosaique.c
+++ b/apps/plugins/mosaique.c
@@ -131,7 +131,7 @@ PLUGIN_HEADER
131#error No keymap defined! 131#error No keymap defined!
132#endif 132#endif
133 133
134#ifdef HAVE_TOUCHPAD 134#ifdef HAVE_TOUCHSCREEN
135#ifndef MOSAIQUE_QUIT 135#ifndef MOSAIQUE_QUIT
136#define MOSAIQUE_QUIT BUTTON_TOPLEFT 136#define MOSAIQUE_QUIT BUTTON_TOPLEFT
137#endif 137#endif
diff --git a/apps/plugins/mp3_encoder.c b/apps/plugins/mp3_encoder.c
index 0dce32e9df..1e159da2c8 100644
--- a/apps/plugins/mp3_encoder.c
+++ b/apps/plugins/mp3_encoder.c
@@ -2460,7 +2460,7 @@ void get_mp3_filename(const char *wav_name)
2460#error No keymap defined! 2460#error No keymap defined!
2461#endif 2461#endif
2462 2462
2463#ifdef HAVE_TOUCHPAD 2463#ifdef HAVE_TOUCHSCREEN
2464#ifndef MP3ENC_PREV 2464#ifndef MP3ENC_PREV
2465#define MP3ENC_PREV BUTTON_MIDLEFT 2465#define MP3ENC_PREV BUTTON_MIDLEFT
2466#endif 2466#endif
diff --git a/apps/plugins/mpegplayer/mpeg_settings.c b/apps/plugins/mpegplayer/mpeg_settings.c
index 17a1cbbb69..e53b37f810 100644
--- a/apps/plugins/mpegplayer/mpeg_settings.c
+++ b/apps/plugins/mpegplayer/mpeg_settings.c
@@ -128,7 +128,7 @@ struct mpeg_settings settings;
128#error No keymap defined! 128#error No keymap defined!
129#endif 129#endif
130 130
131#ifdef HAVE_TOUCHPAD 131#ifdef HAVE_TOUCHSCREEN
132#ifndef MPEG_START_TIME_SELECT 132#ifndef MPEG_START_TIME_SELECT
133#define MPEG_START_TIME_SELECT BUTTON_CENTER 133#define MPEG_START_TIME_SELECT BUTTON_CENTER
134#endif 134#endif
diff --git a/apps/plugins/mpegplayer/mpegplayer.c b/apps/plugins/mpegplayer/mpegplayer.c
index c58a2f6d0f..fd6d3dbd1a 100644
--- a/apps/plugins/mpegplayer/mpegplayer.c
+++ b/apps/plugins/mpegplayer/mpegplayer.c
@@ -201,7 +201,7 @@ PLUGIN_IRAM_DECLARE
201#elif CONFIG_KEYPAD == MROBE500_PAD 201#elif CONFIG_KEYPAD == MROBE500_PAD
202#define MPEG_MENU BUTTON_RC_HEART 202#define MPEG_MENU BUTTON_RC_HEART
203#define MPEG_STOP BUTTON_POWER 203#define MPEG_STOP BUTTON_POWER
204#define MPEG_PAUSE BUTTON_TOUCHPAD 204#define MPEG_PAUSE BUTTON_TOUCHSCREEN
205#define MPEG_VOLDOWN BUTTON_RC_VOL_DOWN 205#define MPEG_VOLDOWN BUTTON_RC_VOL_DOWN
206#define MPEG_VOLUP BUTTON_RC_VOL_UP 206#define MPEG_VOLUP BUTTON_RC_VOL_UP
207#define MPEG_RW BUTTON_RC_REW 207#define MPEG_RW BUTTON_RC_REW
@@ -235,7 +235,7 @@ PLUGIN_IRAM_DECLARE
235#error No keymap defined! 235#error No keymap defined!
236#endif 236#endif
237 237
238#ifdef HAVE_TOUCHPAD 238#ifdef HAVE_TOUCHSCREEN
239#ifndef MPEG_MENU 239#ifndef MPEG_MENU
240#define MPEG_MENU (BUTTON_TOPRIGHT|BUTTON_REL) 240#define MPEG_MENU (BUTTON_TOPRIGHT|BUTTON_REL)
241#endif 241#endif
diff --git a/apps/plugins/oscilloscope.c b/apps/plugins/oscilloscope.c
index 76ff5f5744..9cb59a8fad 100644
--- a/apps/plugins/oscilloscope.c
+++ b/apps/plugins/oscilloscope.c
@@ -192,7 +192,7 @@ PLUGIN_HEADER
192#error No keymap defined! 192#error No keymap defined!
193#endif 193#endif
194 194
195#ifdef HAVE_TOUCHPAD 195#ifdef HAVE_TOUCHSCREEN
196#ifndef OSCILLOSCOPE_QUIT 196#ifndef OSCILLOSCOPE_QUIT
197#define OSCILLOSCOPE_QUIT BUTTON_TOPLEFT 197#define OSCILLOSCOPE_QUIT BUTTON_TOPLEFT
198#endif 198#endif
diff --git a/apps/plugins/pacbox/pacbox.h b/apps/plugins/pacbox/pacbox.h
index 56e7600d58..4e51e3c868 100644
--- a/apps/plugins/pacbox/pacbox.h
+++ b/apps/plugins/pacbox/pacbox.h
@@ -153,7 +153,7 @@
153 153
154#endif 154#endif
155 155
156#ifdef HAVE_TOUCHPAD 156#ifdef HAVE_TOUCHSCREEN
157#ifndef PACMAN_UP 157#ifndef PACMAN_UP
158#define PACMAN_UP BUTTON_MIDRIGHT 158#define PACMAN_UP BUTTON_MIDRIGHT
159#endif 159#endif
diff --git a/apps/plugins/pegbox.c b/apps/plugins/pegbox.c
index 4ba8156e8b..04f5ba9273 100644
--- a/apps/plugins/pegbox.c
+++ b/apps/plugins/pegbox.c
@@ -282,7 +282,7 @@ PLUGIN_HEADER
282#error Unsupported keymap! 282#error Unsupported keymap!
283#endif 283#endif
284 284
285#ifdef HAVE_TOUCHPAD 285#ifdef HAVE_TOUCHSCREEN
286#ifndef PEGBOX_QUIT 286#ifndef PEGBOX_QUIT
287#define PEGBOX_QUIT BUTTON_TOPLEFT 287#define PEGBOX_QUIT BUTTON_TOPLEFT
288#endif 288#endif
@@ -370,7 +370,7 @@ PLUGIN_HEADER
370#define BOARD_Y 0 370#define BOARD_Y 0
371#endif 371#endif
372 372
373#ifdef HAVE_TOUCHPAD 373#ifdef HAVE_TOUCHSCREEN
374#include "lib/touchscreen.h" 374#include "lib/touchscreen.h"
375 375
376static struct ts_mapping main_menu_items[5] = 376static struct ts_mapping main_menu_items[5] =
@@ -385,7 +385,7 @@ static struct ts_mapping main_menu_items[5] =
385#elif LCD_WIDTH > 112 385#elif LCD_WIDTH > 112
3860, LCD_HEIGHT - 8, SYSFONT_WIDTH*28, SYSFONT_HEIGHT 3860, LCD_HEIGHT - 8, SYSFONT_WIDTH*28, SYSFONT_HEIGHT
387#else 387#else
388#error "Touchpad isn't supported on non-bitmap screens!" 388#error "Touchscreen isn't supported on non-bitmap screens!"
389#endif 389#endif
390} 390}
391 391
@@ -640,8 +640,8 @@ static void display_text(char *str, bool waitkey)
640 key = rb->button_get(true); 640 key = rb->button_get(true);
641 switch (key) 641 switch (key)
642 { 642 {
643#ifdef HAVE_TOUCHPAD 643#ifdef HAVE_TOUCHSCREEN
644 case BUTTON_TOUCHPAD: 644 case BUTTON_TOUCHSCREEN:
645#endif 645#endif
646 case PEGBOX_QUIT: 646 case PEGBOX_QUIT:
647 case PEGBOX_LEFT: 647 case PEGBOX_LEFT:
@@ -769,8 +769,8 @@ static void new_piece(struct game_context* pb, unsigned int x_loc,
769 while (!exit) { 769 while (!exit) {
770 draw_board(pb); 770 draw_board(pb);
771 button = rb->button_get(true); 771 button = rb->button_get(true);
772#ifdef HAVE_TOUCHPAD 772#ifdef HAVE_TOUCHSCREEN
773 if(button & BUTTON_TOUCHPAD) 773 if(button & BUTTON_TOUCHSCREEN)
774 { 774 {
775 pegbox_raster_btn.two_d_from.y = x_loc; 775 pegbox_raster_btn.two_d_from.y = x_loc;
776 pegbox_raster_btn.two_d_from.x = y_loc; 776 pegbox_raster_btn.two_d_from.x = y_loc;
@@ -1107,8 +1107,8 @@ static unsigned int pegbox_menu(struct game_context* pb) {
1107 /* handle menu button presses */ 1107 /* handle menu button presses */
1108 button = rb->button_get(true); 1108 button = rb->button_get(true);
1109 1109
1110#ifdef HAVE_TOUCHPAD 1110#ifdef HAVE_TOUCHSCREEN
1111 if(button & BUTTON_TOUCHPAD) 1111 if(button & BUTTON_TOUCHSCREEN)
1112 { 1112 {
1113 unsigned int result = touchscreen_map(&main_menu, rb->button_get_data() >> 16, rb->button_get_data() & 0xffff); 1113 unsigned int result = touchscreen_map(&main_menu, rb->button_get_data() >> 16, rb->button_get_data() & 0xffff);
1114 if(result != (unsigned)-1 && button & BUTTON_REL) 1114 if(result != (unsigned)-1 && button & BUTTON_REL)
@@ -1240,8 +1240,8 @@ static int pegbox(struct game_context* pb) {
1240 1240
1241 while (true) { 1241 while (true) {
1242 temp_var = rb->button_get(true); 1242 temp_var = rb->button_get(true);
1243#ifdef HAVE_TOUCHPAD 1243#ifdef HAVE_TOUCHSCREEN
1244 if(temp_var & BUTTON_TOUCHPAD) 1244 if(temp_var & BUTTON_TOUCHSCREEN)
1245 { 1245 {
1246 pegbox_raster_btn.two_d_from.y = pb->player_row; 1246 pegbox_raster_btn.two_d_from.y = pb->player_row;
1247 pegbox_raster_btn.two_d_from.x = pb->player_col; 1247 pegbox_raster_btn.two_d_from.x = pb->player_col;
diff --git a/apps/plugins/plasma.c b/apps/plugins/plasma.c
index 35ce9daa83..e1527e1907 100644
--- a/apps/plugins/plasma.c
+++ b/apps/plugins/plasma.c
@@ -104,7 +104,7 @@ static int plasma_frequency;
104 104
105#endif 105#endif
106 106
107#ifdef HAVE_TOUCHPAD 107#ifdef HAVE_TOUCHSCREEN
108#ifndef PLASMA_QUIT 108#ifndef PLASMA_QUIT
109#define PLASMA_QUIT BUTTON_TOPLEFT 109#define PLASMA_QUIT BUTTON_TOPLEFT
110#endif 110#endif
@@ -114,7 +114,7 @@ static int plasma_frequency;
114#ifndef PLASMA_DECREASE_FREQUENCY 114#ifndef PLASMA_DECREASE_FREQUENCY
115#define PLASMA_DECREASE_FREQUENCY BUTTON_MIDLEFT 115#define PLASMA_DECREASE_FREQUENCY BUTTON_MIDLEFT
116#endif 116#endif
117#endif /* HAVE_TOUCHPAD */ 117#endif /* HAVE_TOUCHSCREEN */
118 118
119#ifndef PLASMA_QUIT 119#ifndef PLASMA_QUIT
120#define PLASMA_QUIT BUTTON_OFF 120#define PLASMA_QUIT BUTTON_OFF
@@ -147,11 +147,11 @@ static int plasma_frequency;
147#elif CONFIG_KEYPAD == GIGABEAT_S_PAD 147#elif CONFIG_KEYPAD == GIGABEAT_S_PAD
148#define PLASMA_REGEN_COLORS BUTTON_SELECT 148#define PLASMA_REGEN_COLORS BUTTON_SELECT
149#endif 149#endif
150#ifdef HAVE_TOUCHPAD 150#ifdef HAVE_TOUCHSCREEN
151#ifndef PLASMA_REGEN_COLORS 151#ifndef PLASMA_REGEN_COLORS
152#define PLASMA_REGEN_COLORS BUTTON_CENTER 152#define PLASMA_REGEN_COLORS BUTTON_CENTER
153#endif 153#endif
154#endif /* HAVE_TOUCHPAD */ 154#endif /* HAVE_TOUCHSCREEN */
155#endif /* HAVE_LCD_COLOR */ 155#endif /* HAVE_LCD_COLOR */
156 156
157#define WAV_AMP 90 157#define WAV_AMP 90
diff --git a/apps/plugins/pong.c b/apps/plugins/pong.c
index 60d704337f..27721fcfab 100644
--- a/apps/plugins/pong.c
+++ b/apps/plugins/pong.c
@@ -155,7 +155,7 @@ PLUGIN_HEADER
155#error No keymap defined! 155#error No keymap defined!
156#endif 156#endif
157 157
158#ifdef HAVE_TOUCHPAD 158#ifdef HAVE_TOUCHSCREEN
159#ifndef PONG_QUIT 159#ifndef PONG_QUIT
160#define PONG_QUIT BUTTON_TOPMIDDLE 160#define PONG_QUIT BUTTON_TOPMIDDLE
161#endif 161#endif
@@ -398,7 +398,7 @@ int keys(struct pong *p)
398#endif 398#endif
399 399
400 /* number of ticks this function will loop reading keys */ 400 /* number of ticks this function will loop reading keys */
401#ifndef HAVE_TOUCHPAD 401#ifndef HAVE_TOUCHSCREEN
402 int time = 4; 402 int time = 4;
403#else 403#else
404 int time = 1; 404 int time = 1;
@@ -409,9 +409,9 @@ int keys(struct pong *p)
409 while(end > *rb->current_tick) { 409 while(end > *rb->current_tick) {
410 key = rb->button_get_w_tmo(end - *rb->current_tick); 410 key = rb->button_get_w_tmo(end - *rb->current_tick);
411 411
412#ifdef HAVE_TOUCHPAD 412#ifdef HAVE_TOUCHSCREEN
413 short touch_x, touch_y; 413 short touch_x, touch_y;
414 if(key & BUTTON_TOUCHPAD) 414 if(key & BUTTON_TOUCHSCREEN)
415 { 415 {
416 touch_x = rb->button_get_data() >> 16; 416 touch_x = rb->button_get_data() >> 16;
417 touch_y = rb->button_get_data() & 0xFFFF; 417 touch_y = rb->button_get_data() & 0xFFFF;
diff --git a/apps/plugins/reversi/reversi-gui.h b/apps/plugins/reversi/reversi-gui.h
index 3a3cdda3ce..a03be8ee70 100644
--- a/apps/plugins/reversi/reversi-gui.h
+++ b/apps/plugins/reversi/reversi-gui.h
@@ -151,7 +151,7 @@
151#error No keymap defined! 151#error No keymap defined!
152#endif 152#endif
153 153
154#ifdef HAVE_TOUCHPAD 154#ifdef HAVE_TOUCHSCREEN
155#ifndef REVERSI_QUIT 155#ifndef REVERSI_QUIT
156#define REVERSI_QUIT BUTTON_TOPLEFT 156#define REVERSI_QUIT BUTTON_TOPLEFT
157#endif 157#endif
diff --git a/apps/plugins/rockblox.c b/apps/plugins/rockblox.c
index 27ae8e2f99..c4580665ab 100644
--- a/apps/plugins/rockblox.c
+++ b/apps/plugins/rockblox.c
@@ -221,7 +221,7 @@ PLUGIN_HEADER
221#error No keymap defined! 221#error No keymap defined!
222#endif 222#endif
223 223
224#ifdef HAVE_TOUCHPAD 224#ifdef HAVE_TOUCHSCREEN
225#ifndef ROCKBLOX_OFF 225#ifndef ROCKBLOX_OFF
226#define ROCKBLOX_OFF BUTTON_TOPLEFT 226#define ROCKBLOX_OFF BUTTON_TOPLEFT
227#endif 227#endif
diff --git a/apps/plugins/rockboy/rockboy.c b/apps/plugins/rockboy/rockboy.c
index d214807c2d..1de2c2f4d1 100644
--- a/apps/plugins/rockboy/rockboy.c
+++ b/apps/plugins/rockboy/rockboy.c
@@ -86,7 +86,7 @@ static void setoptions (void)
86 fd = open(optionsave, O_RDONLY); 86 fd = open(optionsave, O_RDONLY);
87 if(fd < 0) /* no options to read, set defaults */ 87 if(fd < 0) /* no options to read, set defaults */
88 { 88 {
89#ifdef HAVE_TOUCHPAD 89#ifdef HAVE_TOUCHSCREEN
90 options.LEFT=BUTTON_MIDLEFT; 90 options.LEFT=BUTTON_MIDLEFT;
91 options.RIGHT=BUTTON_MIDRIGHT; 91 options.RIGHT=BUTTON_MIDRIGHT;
92#else 92#else
@@ -219,7 +219,7 @@ static void setoptions (void)
219#error No Keymap Defined! 219#error No Keymap Defined!
220#endif 220#endif
221 221
222#ifdef HAVE_TOUCHPAD 222#ifdef HAVE_TOUCHSCREEN
223 options.UP=BUTTON_TOPMIDDLE; 223 options.UP=BUTTON_TOPMIDDLE;
224 options.DOWN=BUTTON_BOTTOMMIDDLE; 224 options.DOWN=BUTTON_BOTTOMMIDDLE;
225 225
diff --git a/apps/plugins/rockpaint.c b/apps/plugins/rockpaint.c
index 6436d9baa5..32c746cc3e 100644
--- a/apps/plugins/rockpaint.c
+++ b/apps/plugins/rockpaint.c
@@ -126,7 +126,7 @@ PLUGIN_HEADER
126#error "Please define keys for this keypad" 126#error "Please define keys for this keypad"
127#endif 127#endif
128 128
129#ifdef HAVE_TOUCHPAD 129#ifdef HAVE_TOUCHSCREEN
130#ifndef ROCKPAINT_QUIT 130#ifndef ROCKPAINT_QUIT
131#define ROCKPAINT_QUIT BUTTON_TOPLEFT 131#define ROCKPAINT_QUIT BUTTON_TOPLEFT
132#endif 132#endif
diff --git a/apps/plugins/sliding_puzzle.c b/apps/plugins/sliding_puzzle.c
index 9ed15f4b8a..9303985d03 100644
--- a/apps/plugins/sliding_puzzle.c
+++ b/apps/plugins/sliding_puzzle.c
@@ -148,7 +148,7 @@ PLUGIN_HEADER
148#error No keymap defined! 148#error No keymap defined!
149#endif 149#endif
150 150
151#ifdef HAVE_TOUCHPAD 151#ifdef HAVE_TOUCHSCREEN
152#ifndef PUZZLE_QUIT 152#ifndef PUZZLE_QUIT
153#define PUZZLE_QUIT BUTTON_TOPLEFT 153#define PUZZLE_QUIT BUTTON_TOPLEFT
154#endif 154#endif
@@ -676,7 +676,7 @@ enum plugin_status plugin_start(const struct plugin_api* api, const void* parame
676 rb->lcd_putsxy(0, 28, "[MODE] shuffle"); 676 rb->lcd_putsxy(0, 28, "[MODE] shuffle");
677 rb->lcd_putsxy(0, 38, "[MENU] change pic"); 677 rb->lcd_putsxy(0, 38, "[MENU] change pic");
678#endif 678#endif
679#ifdef HAVE_TOUCHPAD 679#ifdef HAVE_TOUCHSCREEN
680 rb->lcd_putsxy(0, 18, PUZZLE_QUIT_TEXT " to stop"); 680 rb->lcd_putsxy(0, 18, PUZZLE_QUIT_TEXT " to stop");
681 rb->lcd_putsxy(0, 28, PUZZLE_SHUFFLE_TEXT " shuffle"); 681 rb->lcd_putsxy(0, 28, PUZZLE_SHUFFLE_TEXT " shuffle");
682 rb->lcd_putsxy(0, 38, PUZZLE_PICTURE_TEXT " change pic"); 682 rb->lcd_putsxy(0, 38, PUZZLE_PICTURE_TEXT " change pic");
diff --git a/apps/plugins/snake.c b/apps/plugins/snake.c
index 21dcebbdb0..0f5923454b 100644
--- a/apps/plugins/snake.c
+++ b/apps/plugins/snake.c
@@ -149,7 +149,7 @@ PLUGIN_HEADER
149#error No keymap defined! 149#error No keymap defined!
150#endif 150#endif
151 151
152#ifdef HAVE_TOUCHPAD 152#ifdef HAVE_TOUCHSCREEN
153#ifndef SNAKE_QUIT 153#ifndef SNAKE_QUIT
154#define SNAKE_QUIT BUTTON_TOPLEFT 154#define SNAKE_QUIT BUTTON_TOPLEFT
155#endif 155#endif
diff --git a/apps/plugins/snake2.c b/apps/plugins/snake2.c
index ff868538f3..1bddeb6b3b 100644
--- a/apps/plugins/snake2.c
+++ b/apps/plugins/snake2.c
@@ -297,7 +297,7 @@ PLUGIN_HEADER
297#error No keymap defined! 297#error No keymap defined!
298#endif 298#endif
299 299
300#ifdef HAVE_TOUCHPAD 300#ifdef HAVE_TOUCHSCREEN
301#ifndef SNAKE2_LEFT 301#ifndef SNAKE2_LEFT
302#define SNAKE2_LEFT BUTTON_MIDLEFT 302#define SNAKE2_LEFT BUTTON_MIDLEFT
303#endif 303#endif
diff --git a/apps/plugins/sokoban.c b/apps/plugins/sokoban.c
index 4e8263aadf..f8e73682dc 100644
--- a/apps/plugins/sokoban.c
+++ b/apps/plugins/sokoban.c
@@ -280,7 +280,7 @@ PLUGIN_HEADER
280#error No keymap defined! 280#error No keymap defined!
281#endif 281#endif
282 282
283#ifdef HAVE_TOUCHPAD 283#ifdef HAVE_TOUCHSCREEN
284#ifndef SOKOBAN_LEFT 284#ifndef SOKOBAN_LEFT
285#define SOKOBAN_LEFT BUTTON_MIDLEFT 285#define SOKOBAN_LEFT BUTTON_MIDLEFT
286#endif 286#endif
@@ -1240,7 +1240,7 @@ static int sokoban_menu(void)
1240 rb->lcd_putsxy(3, 56, "[SELECT+UP] Next Level"); 1240 rb->lcd_putsxy(3, 56, "[SELECT+UP] Next Level");
1241#endif 1241#endif
1242 1242
1243#ifdef HAVE_TOUCHPAD 1243#ifdef HAVE_TOUCHSCREEN
1244 rb->lcd_putsxy(3, 6, SOKOBAN_MENU_NAME " Menu"); 1244 rb->lcd_putsxy(3, 6, SOKOBAN_MENU_NAME " Menu");
1245 rb->lcd_putsxy(3, 16, SOKOBAN_UNDO_NAME " Undo"); 1245 rb->lcd_putsxy(3, 16, SOKOBAN_UNDO_NAME " Undo");
1246 rb->lcd_putsxy(3, 26, SOKOBAN_REDO_NAME " Redo"); 1246 rb->lcd_putsxy(3, 26, SOKOBAN_REDO_NAME " Redo");
diff --git a/apps/plugins/solitaire.c b/apps/plugins/solitaire.c
index 385aa11a41..2baea48c8d 100644
--- a/apps/plugins/solitaire.c
+++ b/apps/plugins/solitaire.c
@@ -307,7 +307,7 @@ static const struct plugin_api* rb;
307#error No keymap defined! 307#error No keymap defined!
308#endif 308#endif
309 309
310#ifdef HAVE_TOUCHPAD 310#ifdef HAVE_TOUCHSCREEN
311//#ifndef SOL_QUIT 311//#ifndef SOL_QUIT
312//# define SOL_QUIT BUTTON_TOPLEFT 312//# define SOL_QUIT BUTTON_TOPLEFT
313//endif 313//endif
diff --git a/apps/plugins/spacerocks.c b/apps/plugins/spacerocks.c
index ac6ff4ee55..21cfb1e794 100644
--- a/apps/plugins/spacerocks.c
+++ b/apps/plugins/spacerocks.c
@@ -209,7 +209,7 @@ static const struct plugin_api* rb; /* global api struct pointer */
209#error No keymap defined! 209#error No keymap defined!
210#endif 210#endif
211 211
212#ifdef HAVE_TOUCHPAD 212#ifdef HAVE_TOUCHSCREEN
213#ifndef AST_PAUSE 213#ifndef AST_PAUSE
214#define AST_PAUSE BUTTON_CENTER 214#define AST_PAUSE BUTTON_CENTER
215#endif 215#endif
diff --git a/apps/plugins/star.c b/apps/plugins/star.c
index 23bfd3ceef..401519bdee 100644
--- a/apps/plugins/star.c
+++ b/apps/plugins/star.c
@@ -237,7 +237,7 @@ PLUGIN_HEADER
237#error No keymap defined! 237#error No keymap defined!
238#endif 238#endif
239 239
240#ifdef HAVE_TOUCHPAD 240#ifdef HAVE_TOUCHSCREEN
241//#ifndef STAR_QUIT 241//#ifndef STAR_QUIT
242//#define STAR_QUIT BUTTON_TOPLEFT 242//#define STAR_QUIT BUTTON_TOPLEFT
243//#define STAR_QUIT_NAME "[TOPLEFT]" 243//#define STAR_QUIT_NAME "[TOPLEFT]"
@@ -1075,7 +1075,7 @@ static int star_menu(void)
1075 "[PLAY+RIGHT] Reset level\n" 1075 "[PLAY+RIGHT] Reset level\n"
1076 "[PLAY+UP] Next level", true); 1076 "[PLAY+UP] Next level", true);
1077#endif 1077#endif
1078#ifdef HAVE_TOUCHPAD 1078#ifdef HAVE_TOUCHSCREEN
1079 star_display_text("KEYS\n\n" 1079 star_display_text("KEYS\n\n"
1080 STAR_TOGGLE_CONTROL_NAME " Toggle Control\n" 1080 STAR_TOGGLE_CONTROL_NAME " Toggle Control\n"
1081 STAR_QUIT_NAME " Exit\n" 1081 STAR_QUIT_NAME " Exit\n"
diff --git a/apps/plugins/starfield.c b/apps/plugins/starfield.c
index 0544569dc5..53198d0a5f 100644
--- a/apps/plugins/starfield.c
+++ b/apps/plugins/starfield.c
@@ -92,7 +92,7 @@ static const struct plugin_api* rb; /* global api struct pointer */
92#define STARFIELD_QUIT BUTTON_POWER 92#define STARFIELD_QUIT BUTTON_POWER
93#endif 93#endif
94 94
95#ifdef HAVE_TOUCHPAD 95#ifdef HAVE_TOUCHSCREEN
96#ifndef STARFIELD_QUIT 96#ifndef STARFIELD_QUIT
97#define STARFIELD_QUIT BUTTON_TOPLEFT 97#define STARFIELD_QUIT BUTTON_TOPLEFT
98#endif 98#endif
diff --git a/apps/plugins/stopwatch.c b/apps/plugins/stopwatch.c
index 6bd6d2be2a..ae71a12f80 100644
--- a/apps/plugins/stopwatch.c
+++ b/apps/plugins/stopwatch.c
@@ -154,7 +154,7 @@ PLUGIN_HEADER
154#error No keymap defined! 154#error No keymap defined!
155#endif 155#endif
156 156
157#ifdef HAVE_TOUCHPAD 157#ifdef HAVE_TOUCHSCREEN
158#ifndef STOPWATCH_QUIT 158#ifndef STOPWATCH_QUIT
159#define STOPWATCH_QUIT BUTTON_TOPLEFT 159#define STOPWATCH_QUIT BUTTON_TOPLEFT
160#endif 160#endif
diff --git a/apps/plugins/sudoku/sudoku.h b/apps/plugins/sudoku/sudoku.h
index 22abdfed57..fb64ef9a66 100644
--- a/apps/plugins/sudoku/sudoku.h
+++ b/apps/plugins/sudoku/sudoku.h
@@ -190,7 +190,7 @@
190#error No keymap defined! 190#error No keymap defined!
191#endif 191#endif
192 192
193#ifdef HAVE_TOUCHPAD 193#ifdef HAVE_TOUCHSCREEN
194#ifndef SUDOKU_BUTTON_QUIT 194#ifndef SUDOKU_BUTTON_QUIT
195#define SUDOKU_BUTTON_QUIT BUTTON_TOPLEFT 195#define SUDOKU_BUTTON_QUIT BUTTON_TOPLEFT
196#endif 196#endif
diff --git a/apps/plugins/superdom.c b/apps/plugins/superdom.c
index 64d91b7c48..088cdaea33 100644
--- a/apps/plugins/superdom.c
+++ b/apps/plugins/superdom.c
@@ -134,7 +134,7 @@ char buf[255];
134 134
135#endif 135#endif
136 136
137#ifdef HAVE_TOUCHPAD 137#ifdef HAVE_TOUCHSCREEN
138#ifndef SUPERDOM_OK 138#ifndef SUPERDOM_OK
139#define SUPERDOM_OK BUTTON_CENTER 139#define SUPERDOM_OK BUTTON_CENTER
140#endif 140#endif
diff --git a/apps/plugins/test_touchpad.c b/apps/plugins/test_touchscreen.c
index 1d4480a46c..84c8e96cb5 100644
--- a/apps/plugins/test_touchpad.c
+++ b/apps/plugins/test_touchscreen.c
@@ -23,11 +23,11 @@
23PLUGIN_HEADER 23PLUGIN_HEADER
24 24
25#if (CONFIG_KEYPAD == COWOND2_PAD) 25#if (CONFIG_KEYPAD == COWOND2_PAD)
26#define TOUCHPAD_QUIT BUTTON_POWER 26#define TOUCHSCREEN_QUIT BUTTON_POWER
27#define TOUCHPAD_TOGGLE BUTTON_MENU 27#define TOUCHSCREEN_TOGGLE BUTTON_MENU
28#elif (CONFIG_KEYPAD == MROBE500_PAD) 28#elif (CONFIG_KEYPAD == MROBE500_PAD)
29#define TOUCHPAD_QUIT BUTTON_POWER 29#define TOUCHSCREEN_QUIT BUTTON_POWER
30#define TOUCHPAD_TOGGLE BUTTON_RC_MODE 30#define TOUCHSCREEN_TOGGLE BUTTON_RC_MODE
31#endif 31#endif
32 32
33static const struct plugin_api* rb; 33static const struct plugin_api* rb;
@@ -36,13 +36,13 @@ static const struct plugin_api* rb;
36enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter) 36enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter)
37{ 37{
38 int button = 0; 38 int button = 0;
39 enum touchpad_mode mode = TOUCHPAD_BUTTON; 39 enum touchscreen_mode mode = TOUCHSCREEN_BUTTON;
40 40
41 /* standard stuff */ 41 /* standard stuff */
42 (void)parameter; 42 (void)parameter;
43 rb = api; 43 rb = api;
44 44
45 rb->touchpad_set_mode(mode); 45 rb->touchscreen_set_mode(mode);
46 46
47 /* wait until user closes plugin */ 47 /* wait until user closes plugin */
48 do 48 do
@@ -99,10 +99,10 @@ enum plugin_status plugin_start(const struct plugin_api* api, const void* parame
99 x = 2*(LCD_WIDTH/3); y = 2*(LCD_HEIGHT/3); 99 x = 2*(LCD_WIDTH/3); y = 2*(LCD_HEIGHT/3);
100 } 100 }
101 101
102 if (button & TOUCHPAD_TOGGLE && (button & BUTTON_REL)) 102 if (button & TOUCHSCREEN_TOGGLE && (button & BUTTON_REL))
103 { 103 {
104 mode = (mode == TOUCHPAD_POINT) ? TOUCHPAD_BUTTON : TOUCHPAD_POINT; 104 mode = (mode == TOUCHSCREEN_POINT) ? TOUCHSCREEN_BUTTON : TOUCHSCREEN_POINT;
105 rb->touchpad_set_mode(mode); 105 rb->touchscreen_set_mode(mode);
106 } 106 }
107 107
108 if (button & BUTTON_REL) draw_rect = false; 108 if (button & BUTTON_REL) draw_rect = false;
@@ -115,7 +115,7 @@ enum plugin_status plugin_start(const struct plugin_api* api, const void* parame
115 rb->lcd_fillrect(x, y, LCD_WIDTH/3, LCD_HEIGHT/3); 115 rb->lcd_fillrect(x, y, LCD_WIDTH/3, LCD_HEIGHT/3);
116 } 116 }
117 117
118 if (draw_rect || button & BUTTON_TOUCHPAD) 118 if (draw_rect || button & BUTTON_TOUCHSCREEN)
119 { 119 {
120 intptr_t button_data = rb->button_get_data(); 120 intptr_t button_data = rb->button_get_data();
121 x = button_data >> 16; 121 x = button_data >> 16;
@@ -125,7 +125,7 @@ enum plugin_status plugin_start(const struct plugin_api* api, const void* parame
125 rb->lcd_fillrect(x-7, y-7, 14, 14); 125 rb->lcd_fillrect(x-7, y-7, 14, 14);
126 126
127 /* in stylus mode, show REL position in black */ 127 /* in stylus mode, show REL position in black */
128 if (mode == TOUCHPAD_POINT && (button & BUTTON_REL)) 128 if (mode == TOUCHSCREEN_POINT && (button & BUTTON_REL))
129 rb->lcd_set_foreground(LCD_BLACK); 129 rb->lcd_set_foreground(LCD_BLACK);
130 else 130 else
131 rb->lcd_set_foreground(LCD_WHITE); 131 rb->lcd_set_foreground(LCD_WHITE);
@@ -135,7 +135,7 @@ enum plugin_status plugin_start(const struct plugin_api* api, const void* parame
135 } 135 }
136 rb->lcd_update(); 136 rb->lcd_update();
137 137
138 } while (button != TOUCHPAD_QUIT); 138 } while (button != TOUCHSCREEN_QUIT);
139 139
140 return PLUGIN_OK; 140 return PLUGIN_OK;
141} 141}
diff --git a/apps/plugins/viewer.c b/apps/plugins/viewer.c
index 7005745e01..806688514e 100644
--- a/apps/plugins/viewer.c
+++ b/apps/plugins/viewer.c
@@ -262,7 +262,7 @@ PLUGIN_HEADER
262#error No keymap defined! 262#error No keymap defined!
263#endif 263#endif
264 264
265#ifdef HAVE_TOUCHPAD 265#ifdef HAVE_TOUCHSCREEN
266#ifndef VIEWER_QUIT 266#ifndef VIEWER_QUIT
267#define VIEWER_QUIT BUTTON_TOPLEFT 267#define VIEWER_QUIT BUTTON_TOPLEFT
268#endif 268#endif
diff --git a/apps/plugins/vu_meter.c b/apps/plugins/vu_meter.c
index b18c4f0db0..4c98e6df8f 100644
--- a/apps/plugins/vu_meter.c
+++ b/apps/plugins/vu_meter.c
@@ -213,7 +213,7 @@ PLUGIN_HEADER
213#error No keymap defined! 213#error No keymap defined!
214#endif 214#endif
215 215
216#ifdef HAVE_TOUCHPAD 216#ifdef HAVE_TOUCHSCREEN
217#ifndef VUMETER_QUIT 217#ifndef VUMETER_QUIT
218#define VUMETER_QUIT BUTTON_TOPLEFT 218#define VUMETER_QUIT BUTTON_TOPLEFT
219#define LABEL_QUIT "TOPLEFT" 219#define LABEL_QUIT "TOPLEFT"
diff --git a/apps/plugins/wormlet.c b/apps/plugins/wormlet.c
index 5469073588..6586e78b2c 100644
--- a/apps/plugins/wormlet.c
+++ b/apps/plugins/wormlet.c
@@ -225,7 +225,7 @@ PLUGIN_HEADER
225#error No keymap defined! 225#error No keymap defined!
226#endif 226#endif
227 227
228#ifdef HAVE_TOUCHPAD 228#ifdef HAVE_TOUCHSCREEN
229#ifndef BTN_DIR_UP 229#ifndef BTN_DIR_UP
230#define BTN_DIR_UP BUTTON_TOPMIDDLE 230#define BTN_DIR_UP BUTTON_TOPMIDDLE
231#endif 231#endif
diff --git a/apps/plugins/xobox.c b/apps/plugins/xobox.c
index 0faf8a27be..8490d6bae6 100644
--- a/apps/plugins/xobox.c
+++ b/apps/plugins/xobox.c
@@ -149,7 +149,7 @@ PLUGIN_HEADER
149#error No keymap defined! 149#error No keymap defined!
150#endif 150#endif
151 151
152#ifdef HAVE_TOUCHPAD 152#ifdef HAVE_TOUCHSCREEN
153#ifndef QUIT 153#ifndef QUIT
154#define QUIT BUTTON_TOPLEFT 154#define QUIT BUTTON_TOPLEFT
155#endif 155#endif
diff --git a/apps/plugins/zxbox/keymaps.h b/apps/plugins/zxbox/keymaps.h
index 932c360991..777ddccac3 100644
--- a/apps/plugins/zxbox/keymaps.h
+++ b/apps/plugins/zxbox/keymaps.h
@@ -127,7 +127,7 @@
127 127
128#endif 128#endif
129 129
130#ifdef HAVE_TOUCHPAD 130#ifdef HAVE_TOUCHSCREEN
131#ifndef ZX_UP 131#ifndef ZX_UP
132#define ZX_UP BUTTON_TOPMIDDLE 132#define ZX_UP BUTTON_TOPMIDDLE
133#endif 133#endif
diff --git a/apps/plugins/zxbox/zxbox_keyb.c b/apps/plugins/zxbox/zxbox_keyb.c
index 146d7432b4..f57b8e4f16 100644
--- a/apps/plugins/zxbox/zxbox_keyb.c
+++ b/apps/plugins/zxbox/zxbox_keyb.c
@@ -138,7 +138,7 @@
138 138
139#endif 139#endif
140 140
141#ifdef HAVE_TOUCHPAD 141#ifdef HAVE_TOUCHSCREEN
142#ifndef KBD_SELECT 142#ifndef KBD_SELECT
143#define KBD_SELECT BUTTON_CENTER 143#define KBD_SELECT BUTTON_CENTER
144#endif 144#endif