summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2008-08-23 09:46:38 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2008-08-23 09:46:38 +0000
commit1392dc2144a4b1810ba5c421f54e05dc1a3a74c7 (patch)
tree7f7f7d6dd6ce00e8146896456549441d4e8153d7 /apps/plugins
parent965d2af61f5035dcf5179b8539785de641a9f015 (diff)
downloadrockbox-1392dc2144a4b1810ba5c421f54e05dc1a3a74c7.zip
rockbox-1392dc2144a4b1810ba5c421f54e05dc1a3a74c7.tar.gz
rockbox-1392dc2144a4b1810ba5c421f54e05dc1a3a74c7.tar.bz2
rockbox-1392dc2144a4b1810ba5c421f54e05dc1a3a74c7.tar.xz
Commit FS#9308: differentiate between TOUCHPAD & TOUCHSCREEN
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18338 a1c6a512-1295-4272-9138-f99709370657
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 a811059..1cf530b 100644
--- a/apps/plugins/CATEGORIES
+++ b/apps/plugins/CATEGORIES
@@ -89,7 +89,7 @@ test_fps,apps
test_grey,apps
test_sampr,apps
test_scanrate,apps
-test_touchpad,apps
+test_touchscreen,apps
test_viewports,apps
text_editor,apps
vbrfix,viewers
diff --git a/apps/plugins/battery_bench.c b/apps/plugins/battery_bench.c
index 90e9b40..4361bbc 100644
--- a/apps/plugins/battery_bench.c
+++ b/apps/plugins/battery_bench.c
@@ -154,7 +154,7 @@ PLUGIN_HEADER
#error No keymap defined!
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef BATTERY_ON
#define BATTERY_ON BUTTON_CENTER
#endif
diff --git a/apps/plugins/blackjack.c b/apps/plugins/blackjack.c
index 7d69e8f..e6a9fbd 100644
--- a/apps/plugins/blackjack.c
+++ b/apps/plugins/blackjack.c
@@ -261,7 +261,7 @@ PLUGIN_HEADER
#error No keymap defined!
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef BJACK_START
#define BJACK_START BUTTON_CENTER
#endif
@@ -1238,7 +1238,7 @@ static unsigned int blackjack_menu(struct game_context* bj) {
rb->lcd_puts(0, 10, str);
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
rb->lcd_puts(0, 2, "LCD CENTRE to start & to hit");
rb->lcd_puts(0, 3, "LCD BOTTOMLEFT to stay");
rb->lcd_puts(0, 4, "LCD BOTTOMRIGHT to save/resume");
diff --git a/apps/plugins/bounce.c b/apps/plugins/bounce.c
index bae5b82..65aaa3e 100644
--- a/apps/plugins/bounce.c
+++ b/apps/plugins/bounce.c
@@ -148,7 +148,7 @@ PLUGIN_HEADER
#error No keymap defined!
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef BOUNCE_LEFT
#define BOUNCE_LEFT BUTTON_MIDLEFT
#endif
diff --git a/apps/plugins/brickmania.c b/apps/plugins/brickmania.c
index c3cdcad..d6b1827 100644
--- a/apps/plugins/brickmania.c
+++ b/apps/plugins/brickmania.c
@@ -173,7 +173,7 @@ PLUGIN_HEADER
#error No keymap defined!
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef LEFT
#define LEFT BUTTON_MIDLEFT
#endif
@@ -448,7 +448,7 @@ enum menu_items {
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#include "lib/touchscreen.h"
static struct ts_mapping main_menu_items[4] =
@@ -1024,8 +1024,8 @@ int game_menu(int when)
rb->lcd_update();
button = rb->button_get(true);
-#ifdef HAVE_TOUCHPAD
- if(button & BUTTON_TOUCHPAD)
+#ifdef HAVE_TOUCHSCREEN
+ if(button & BUTTON_TOUCHSCREEN)
{
unsigned int result = touchscreen_map(&main_menu, rb->button_get_data() >> 16, rb->button_get_data() & 0xffff);
if(result != (unsigned)-1 && button & BUTTON_REL)
@@ -1176,8 +1176,8 @@ int help(int when)
#ifdef RC_QUIT
case RC_QUIT:
#endif
-#ifdef HAVE_TOUCHPAD
- case BUTTON_TOUCHPAD:
+#ifdef HAVE_TOUCHSCREEN
+ case BUTTON_TOUCHSCREEN:
#endif
case QUIT:
switch (game_menu(when)) {
@@ -1871,8 +1871,8 @@ int game_loop(void)
button = QUIT;
#endif
-#ifdef HAVE_TOUCHPAD
- if(button & BUTTON_TOUCHPAD)
+#ifdef HAVE_TOUCHSCREEN
+ if(button & BUTTON_TOUCHSCREEN)
{
short touch_x, touch_y;
touch_x = rb->button_get_data() >> 16;
@@ -1936,7 +1936,7 @@ int game_loop(void)
pad_pos_x-=8;
}
}
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
}
#endif
diff --git a/apps/plugins/calculator.c b/apps/plugins/calculator.c
index cbbbeaa..3a3947d 100644
--- a/apps/plugins/calculator.c
+++ b/apps/plugins/calculator.c
@@ -265,7 +265,7 @@ PLUGIN_HEADER
#error No keymap defined!
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef CALCULATOR_LEFT
#define CALCULATOR_LEFT BUTTON_MIDLEFT
#endif
@@ -1549,8 +1549,8 @@ enum plugin_status plugin_start(const struct plugin_api* api, const void* parame
while (calStatus != cal_exit ) {
btn = rb->button_get_w_tmo(HZ/2);
-#ifdef HAVE_TOUCHPAD
- if(btn & BUTTON_TOUCHPAD)
+#ifdef HAVE_TOUCHSCREEN
+ if(btn & BUTTON_TOUCHSCREEN)
{
struct ts_raster_result res;
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
sciButtonsProcess();
break;
}
- btn = BUTTON_TOUCHPAD;
+ btn = BUTTON_TOUCHSCREEN;
}
}
}
diff --git a/apps/plugins/chessbox/chessbox_pgn.h b/apps/plugins/chessbox/chessbox_pgn.h
index 48357ee..2054316 100644
--- a/apps/plugins/chessbox/chessbox_pgn.h
+++ b/apps/plugins/chessbox/chessbox_pgn.h
@@ -274,7 +274,7 @@
#error No keymap defined!
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef CB_LEVEL
#define CB_LEVEL BUTTON_TOPLEFT
#endif
diff --git a/apps/plugins/chessclock.c b/apps/plugins/chessclock.c
index d808956..b4d2ed0 100644
--- a/apps/plugins/chessclock.c
+++ b/apps/plugins/chessclock.c
@@ -194,7 +194,7 @@ PLUGIN_HEADER
#error No keymap defined!
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef CHC_SETTINGS_OK
#define CHC_SETTINGS_OK BUTTON_CENTER
#endif
diff --git a/apps/plugins/chip8.c b/apps/plugins/chip8.c
index 6bddfa2..be624ed 100644
--- a/apps/plugins/chip8.c
+++ b/apps/plugins/chip8.c
@@ -1086,7 +1086,7 @@ STATIC void chip8 (void)
#error No keymap defined!
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef CHIP8_OFF
#define CHIP8_OFF BUTTON_TOPLEFT
#endif
diff --git a/apps/plugins/chopper.c b/apps/plugins/chopper.c
index 9b854ae..c61d012 100644
--- a/apps/plugins/chopper.c
+++ b/apps/plugins/chopper.c
@@ -112,7 +112,7 @@ Still To do:
#error No keymap defined!
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef QUIT
#define QUIT BUTTON_TOPLEFT
#endif
diff --git a/apps/plugins/cube.c b/apps/plugins/cube.c
index 55721fb..35737a6 100644
--- a/apps/plugins/cube.c
+++ b/apps/plugins/cube.c
@@ -250,7 +250,7 @@ PLUGIN_HEADER
#error No keymap defined!
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
// not enough touchfields, so CUBE_QUIT have to be
// mapped to a real button
//ifndef CUBE_QUIT
diff --git a/apps/plugins/doom/i_video.c b/apps/plugins/doom/i_video.c
index cb6d967..58be699 100644
--- a/apps/plugins/doom/i_video.c
+++ b/apps/plugins/doom/i_video.c
@@ -272,7 +272,7 @@ void I_ShutdownGraphics(void)
#error Keymap not defined!
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef DOOMBUTTON_UP
#define DOOMBUTTON_UP BUTTON_TOPMIDDLE
#endif
diff --git a/apps/plugins/fireworks.c b/apps/plugins/fireworks.c
index f3beb65..43cd04a 100644
--- a/apps/plugins/fireworks.c
+++ b/apps/plugins/fireworks.c
@@ -77,7 +77,7 @@ static const struct plugin_api* rb;
#error No keymap defined!
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef BTN_MENU
#define BTN_MENU (BUTTON_TOPLEFT|BUTTON_REL)
#endif
diff --git a/apps/plugins/flipit.c b/apps/plugins/flipit.c
index 9d3a9a2..6eff147 100644
--- a/apps/plugins/flipit.c
+++ b/apps/plugins/flipit.c
@@ -216,7 +216,7 @@ PLUGIN_HEADER
#error No keymap defined!
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef FLIPIT_LEFT
#define FLIPIT_LEFT BUTTON_MIDLEFT
#endif
@@ -675,7 +675,7 @@ enum plugin_status plugin_start(const struct plugin_api* api, const void* parame
rb->lcd_putsxy(2, 48, "[MENU] step by step");
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
rb->lcd_putsxy(2, 8, "[BOTTOMLEFT] to stop");
rb->lcd_putsxy(2, 18, "[CENTRE] toggle");
rb->lcd_putsxy(2, 28, "[TOPRIGHT] shuffle");
diff --git a/apps/plugins/invadrox.c b/apps/plugins/invadrox.c
index 44094c2..a46580a 100644
--- a/apps/plugins/invadrox.c
+++ b/apps/plugins/invadrox.c
@@ -124,7 +124,7 @@ PLUGIN_HEADER
#error INVADROX: Unsupported keypad
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef QUIT
#define QUIT BUTTON_TOPLEFT
#endif
diff --git a/apps/plugins/jewels.c b/apps/plugins/jewels.c
index 7f4cd4b..6f547fd 100644
--- a/apps/plugins/jewels.c
+++ b/apps/plugins/jewels.c
@@ -157,7 +157,7 @@ PLUGIN_HEADER
#error No keymap defined!
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef JEWELS_UP
#define JEWELS_UP BUTTON_TOPMIDDLE
#endif
@@ -1610,7 +1610,7 @@ static int jewels_main(struct game_context* bj) {
#warning: missing help text.
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
rb->lcd_puts(0, 2, "Swap pairs of jewels to");
rb->lcd_puts(0, 3, "form connected segments");
rb->lcd_puts(0, 4, "of three or more of the");
diff --git a/apps/plugins/jpeg.c b/apps/plugins/jpeg.c
index ffc9d49..142e982 100644
--- a/apps/plugins/jpeg.c
+++ b/apps/plugins/jpeg.c
@@ -218,7 +218,7 @@ PLUGIN_HEADER
#error No keymap defined!
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef JPEG_UP
#define JPEG_UP BUTTON_TOPMIDDLE
#endif
diff --git a/apps/plugins/lamp.c b/apps/plugins/lamp.c
index 8a67394..a938d7a 100644
--- a/apps/plugins/lamp.c
+++ b/apps/plugins/lamp.c
@@ -79,7 +79,7 @@ PLUGIN_HEADER
#endif
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
# ifndef LAMP_LEFT
# define LAMP_LEFT BUTTON_MIDLEFT
# endif
diff --git a/apps/plugins/lib/SOURCES b/apps/plugins/lib/SOURCES
index 775db05..d21f21a 100644
--- a/apps/plugins/lib/SOURCES
+++ b/apps/plugins/lib/SOURCES
@@ -39,7 +39,7 @@ bmp_smooth_scale.c
#endif
pluginlib_actions.c
helper.c
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
touchscreen.c
#endif
md5.c
diff --git a/apps/plugins/lib/pluginlib_actions.c b/apps/plugins/lib/pluginlib_actions.c
index 996e217..a6bf283 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[] =
const struct button_mapping generic_directions[] =
{
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
{ PLA_UP, BUTTON_TOPMIDDLE, BUTTON_NONE},
{ PLA_DOWN, BUTTON_BOTTOMMIDDLE, BUTTON_NONE},
{ PLA_LEFT, BUTTON_MIDLEFT, BUTTON_NONE},
@@ -162,7 +162,7 @@ const struct button_mapping generic_directions[] =
const struct button_mapping generic_left_right_fire[] =
{
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
{ PLA_LEFT, BUTTON_MIDLEFT, BUTTON_NONE},
{ PLA_LEFT_REPEAT, BUTTON_MIDLEFT|BUTTON_REPEAT, BUTTON_NONE},
{ PLA_RIGHT, BUTTON_MIDRIGHT, BUTTON_NONE},
@@ -266,7 +266,7 @@ const struct button_mapping generic_left_right_fire[] =
/* these were taken from the bubbles plugin, so may need tweaking */
const struct button_mapping generic_actions[] =
{
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
{PLA_QUIT, BUTTON_BOTTOMRIGHT, BUTTON_NONE},
{PLA_START, BUTTON_CENTER, BUTTON_NONE},
{PLA_MENU, BUTTON_TOPLEFT, BUTTON_NONE},
@@ -399,7 +399,7 @@ const struct button_mapping generic_actions[] =
const struct button_mapping generic_increase_decrease[] =
{
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
{PLA_INC, BUTTON_TOPMIDDLE, BUTTON_NONE},
{PLA_DEC, BUTTON_BOTTOMMIDDLE, BUTTON_NONE},
{PLA_INC_REPEAT, BUTTON_TOPMIDDLE|BUTTON_REPEAT, BUTTON_NONE},
diff --git a/apps/plugins/lib/touchscreen.c b/apps/plugins/lib/touchscreen.c
index cda2f46..5b75173 100644
--- a/apps/plugins/lib/touchscreen.c
+++ b/apps/plugins/lib/touchscreen.c
@@ -21,7 +21,7 @@
#include "plugin.h"
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#include "touchscreen.h"
@@ -132,4 +132,4 @@ struct ts_raster_button_result touchscreen_raster_map_button(struct ts_raster_bu
return ret;
}
-#endif /* HAVE_TOUCHPAD */
+#endif /* HAVE_TOUCHSCREEN */
diff --git a/apps/plugins/lib/touchscreen.h b/apps/plugins/lib/touchscreen.h
index 7050db6..cd5251e 100644
--- a/apps/plugins/lib/touchscreen.h
+++ b/apps/plugins/lib/touchscreen.h
@@ -22,7 +22,9 @@
#ifndef _PLUGIN_LIB_TOUCHSCREEN_H_
#define _PLUGIN_LIB_TOUCHSCREEN_H_
-#ifdef HAVE_TOUCHPAD
+#include "plugin.h"
+
+#ifdef HAVE_TOUCHSCREEN
struct ts_mapping
{
@@ -88,5 +90,5 @@ struct ts_raster_button_result
struct ts_raster_button_result touchscreen_raster_map_button(struct ts_raster_button_mapping *map, int x, int y, int button);
-#endif /* HAVE_TOUCHPAD */
+#endif /* HAVE_TOUCHSCREEN */
#endif /* _PLUGIN_LIB_TOUCHSCREEN_H_ */
diff --git a/apps/plugins/logo.c b/apps/plugins/logo.c
index dd03dd8..779ce88 100644
--- a/apps/plugins/logo.c
+++ b/apps/plugins/logo.c
@@ -160,7 +160,7 @@ const unsigned char rockbox16x7[] = {
#endif
#endif /* CONFIG_REMOTE_KEYPAD */
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef LP_QUIT
#define LP_QUIT BUTTON_TOPLEFT
#endif
diff --git a/apps/plugins/mandelbrot.c b/apps/plugins/mandelbrot.c
index e4e8311..ca7f708 100644
--- a/apps/plugins/mandelbrot.c
+++ b/apps/plugins/mandelbrot.c
@@ -227,7 +227,7 @@ PLUGIN_HEADER
#error No keymap defined!
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef MANDELBROT_UP
#define MANDELBROT_UP BUTTON_TOPMIDDLE
#endif
diff --git a/apps/plugins/matrix.c b/apps/plugins/matrix.c
index 2b63be9..fe54b29 100644
--- a/apps/plugins/matrix.c
+++ b/apps/plugins/matrix.c
@@ -103,7 +103,7 @@ extern const fb_data matrix_normal[];
#error Unsupported keypad
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef MATRIX_EXIT
#define MATRIX_EXIT BUTTON_TOPLEFT
#endif
diff --git a/apps/plugins/midi/midiplay.c b/apps/plugins/midi/midiplay.c
index a394aac..d76e038 100644
--- a/apps/plugins/midi/midiplay.c
+++ b/apps/plugins/midi/midiplay.c
@@ -154,7 +154,7 @@ PLUGIN_IRAM_DECLARE
#error No keymap defined!
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef BTN_QUIT
#define BTN_QUIT BUTTON_TOPLEFT
#endif
diff --git a/apps/plugins/minesweeper.c b/apps/plugins/minesweeper.c
index 266d12f..c37c9e8 100644
--- a/apps/plugins/minesweeper.c
+++ b/apps/plugins/minesweeper.c
@@ -192,7 +192,7 @@ enum minesweeper_status {
#error No keymap defined!
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef MINESWP_QUIT
# define MINESWP_QUIT BUTTON_TOPLEFT
#endif
@@ -305,7 +305,7 @@ int stack_pos = 0;
/* a usefull string for snprintf */
char str[30];
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#include "lib/touchscreen.h"
static struct ts_raster mine_raster = { 0, 0, MAX_WIDTH, MAX_HEIGHT, TileSize, TileSize };
@@ -485,7 +485,7 @@ void mine_show( void )
button = rb->button_get(true);
while( ( button == BUTTON_NONE )
|| ( button & (BUTTON_REL|BUTTON_REPEAT) ) );
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
button = BUTTON_NONE;
#endif
}
@@ -582,7 +582,7 @@ enum minesweeper_status minesweeper( void )
top = (LCD_HEIGHT-height*TileSize)/2;
left = (LCD_WIDTH-width*TileSize)/2;
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
mine_raster.tl_x = left;
mine_raster.tl_y = top;
mine_raster.width = width*TileSize;
@@ -633,21 +633,21 @@ enum minesweeper_status minesweeper( void )
rb->lcd_update();
button = rb->button_get(true);
-#ifdef HAVE_TOUCHPAD
- if(button & BUTTON_TOUCHPAD)
+#ifdef HAVE_TOUCHSCREEN
+ if(button & BUTTON_TOUCHSCREEN)
{
struct ts_raster_result res;
if(touchscreen_map_raster(&mine_raster, rb->button_get_data() >> 16, rb->button_get_data() & 0xffff, &res) == 1)
{
- button &= ~BUTTON_TOUCHPAD;
- lastbutton &= ~BUTTON_TOUCHPAD;
+ button &= ~BUTTON_TOUCHSCREEN;
+ lastbutton &= ~BUTTON_TOUCHSCREEN;
if(button & BUTTON_REPEAT && lastbutton != MINESWP_TOGGLE && lastbutton ^ BUTTON_REPEAT)
button = MINESWP_TOGGLE;
else if(button == BUTTON_REL && lastbutton ^ BUTTON_REPEAT)
button = MINESWP_DISCOVER;
else
- button |= BUTTON_TOUCHPAD;
+ button |= BUTTON_TOUCHSCREEN;
x = res.x;
y = res.y;
diff --git a/apps/plugins/mosaique.c b/apps/plugins/mosaique.c
index dbd6473..b750efb 100644
--- a/apps/plugins/mosaique.c
+++ b/apps/plugins/mosaique.c
@@ -131,7 +131,7 @@ PLUGIN_HEADER
#error No keymap defined!
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef MOSAIQUE_QUIT
#define MOSAIQUE_QUIT BUTTON_TOPLEFT
#endif
diff --git a/apps/plugins/mp3_encoder.c b/apps/plugins/mp3_encoder.c
index 0dce32e..1e159da 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)
#error No keymap defined!
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef MP3ENC_PREV
#define MP3ENC_PREV BUTTON_MIDLEFT
#endif
diff --git a/apps/plugins/mpegplayer/mpeg_settings.c b/apps/plugins/mpegplayer/mpeg_settings.c
index 17a1cbb..e53b37f 100644
--- a/apps/plugins/mpegplayer/mpeg_settings.c
+++ b/apps/plugins/mpegplayer/mpeg_settings.c
@@ -128,7 +128,7 @@ struct mpeg_settings settings;
#error No keymap defined!
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef MPEG_START_TIME_SELECT
#define MPEG_START_TIME_SELECT BUTTON_CENTER
#endif
diff --git a/apps/plugins/mpegplayer/mpegplayer.c b/apps/plugins/mpegplayer/mpegplayer.c
index c58a2f6..fd6d3db 100644
--- a/apps/plugins/mpegplayer/mpegplayer.c
+++ b/apps/plugins/mpegplayer/mpegplayer.c
@@ -201,7 +201,7 @@ PLUGIN_IRAM_DECLARE
#elif CONFIG_KEYPAD == MROBE500_PAD
#define MPEG_MENU BUTTON_RC_HEART
#define MPEG_STOP BUTTON_POWER
-#define MPEG_PAUSE BUTTON_TOUCHPAD
+#define MPEG_PAUSE BUTTON_TOUCHSCREEN
#define MPEG_VOLDOWN BUTTON_RC_VOL_DOWN
#define MPEG_VOLUP BUTTON_RC_VOL_UP
#define MPEG_RW BUTTON_RC_REW
@@ -235,7 +235,7 @@ PLUGIN_IRAM_DECLARE
#error No keymap defined!
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef MPEG_MENU
#define MPEG_MENU (BUTTON_TOPRIGHT|BUTTON_REL)
#endif
diff --git a/apps/plugins/oscilloscope.c b/apps/plugins/oscilloscope.c
index 76ff5f5..9cb59a8 100644
--- a/apps/plugins/oscilloscope.c
+++ b/apps/plugins/oscilloscope.c
@@ -192,7 +192,7 @@ PLUGIN_HEADER
#error No keymap defined!
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef OSCILLOSCOPE_QUIT
#define OSCILLOSCOPE_QUIT BUTTON_TOPLEFT
#endif
diff --git a/apps/plugins/pacbox/pacbox.h b/apps/plugins/pacbox/pacbox.h
index 56e7600..4e51e3c 100644
--- a/apps/plugins/pacbox/pacbox.h
+++ b/apps/plugins/pacbox/pacbox.h
@@ -153,7 +153,7 @@
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef PACMAN_UP
#define PACMAN_UP BUTTON_MIDRIGHT
#endif
diff --git a/apps/plugins/pegbox.c b/apps/plugins/pegbox.c
index 4ba8156..04f5ba9 100644
--- a/apps/plugins/pegbox.c
+++ b/apps/plugins/pegbox.c
@@ -282,7 +282,7 @@ PLUGIN_HEADER
#error Unsupported keymap!
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef PEGBOX_QUIT
#define PEGBOX_QUIT BUTTON_TOPLEFT
#endif
@@ -370,7 +370,7 @@ PLUGIN_HEADER
#define BOARD_Y 0
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#include "lib/touchscreen.h"
static struct ts_mapping main_menu_items[5] =
@@ -385,7 +385,7 @@ static struct ts_mapping main_menu_items[5] =
#elif LCD_WIDTH > 112
0, LCD_HEIGHT - 8, SYSFONT_WIDTH*28, SYSFONT_HEIGHT
#else
-#error "Touchpad isn't supported on non-bitmap screens!"
+#error "Touchscreen isn't supported on non-bitmap screens!"
#endif
}
@@ -640,8 +640,8 @@ static void display_text(char *str, bool waitkey)
key = rb->button_get(true);
switch (key)
{
-#ifdef HAVE_TOUCHPAD
- case BUTTON_TOUCHPAD:
+#ifdef HAVE_TOUCHSCREEN
+ case BUTTON_TOUCHSCREEN:
#endif
case PEGBOX_QUIT:
case PEGBOX_LEFT:
@@ -769,8 +769,8 @@ static void new_piece(struct game_context* pb, unsigned int x_loc,
while (!exit) {
draw_board(pb);
button = rb->button_get(true);
-#ifdef HAVE_TOUCHPAD
- if(button & BUTTON_TOUCHPAD)
+#ifdef HAVE_TOUCHSCREEN
+ if(button & BUTTON_TOUCHSCREEN)
{
pegbox_raster_btn.two_d_from.y = x_loc;
pegbox_raster_btn.two_d_from.x = y_loc;
@@ -1107,8 +1107,8 @@ static unsigned int pegbox_menu(struct game_context* pb) {
/* handle menu button presses */
button = rb->button_get(true);
-#ifdef HAVE_TOUCHPAD
- if(button & BUTTON_TOUCHPAD)
+#ifdef HAVE_TOUCHSCREEN
+ if(button & BUTTON_TOUCHSCREEN)
{
unsigned int result = touchscreen_map(&main_menu, rb->button_get_data() >> 16, rb->button_get_data() & 0xffff);
if(result != (unsigned)-1 && button & BUTTON_REL)
@@ -1240,8 +1240,8 @@ static int pegbox(struct game_context* pb) {
while (true) {
temp_var = rb->button_get(true);
-#ifdef HAVE_TOUCHPAD
- if(temp_var & BUTTON_TOUCHPAD)
+#ifdef HAVE_TOUCHSCREEN
+ if(temp_var & BUTTON_TOUCHSCREEN)
{
pegbox_raster_btn.two_d_from.y = pb->player_row;
pegbox_raster_btn.two_d_from.x = pb->player_col;
diff --git a/apps/plugins/plasma.c b/apps/plugins/plasma.c
index 35ce9da..e1527e1 100644
--- a/apps/plugins/plasma.c
+++ b/apps/plugins/plasma.c
@@ -104,7 +104,7 @@ static int plasma_frequency;
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef PLASMA_QUIT
#define PLASMA_QUIT BUTTON_TOPLEFT
#endif
@@ -114,7 +114,7 @@ static int plasma_frequency;
#ifndef PLASMA_DECREASE_FREQUENCY
#define PLASMA_DECREASE_FREQUENCY BUTTON_MIDLEFT
#endif
-#endif /* HAVE_TOUCHPAD */
+#endif /* HAVE_TOUCHSCREEN */
#ifndef PLASMA_QUIT
#define PLASMA_QUIT BUTTON_OFF
@@ -147,11 +147,11 @@ static int plasma_frequency;
#elif CONFIG_KEYPAD == GIGABEAT_S_PAD
#define PLASMA_REGEN_COLORS BUTTON_SELECT
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef PLASMA_REGEN_COLORS
#define PLASMA_REGEN_COLORS BUTTON_CENTER
#endif
-#endif /* HAVE_TOUCHPAD */
+#endif /* HAVE_TOUCHSCREEN */
#endif /* HAVE_LCD_COLOR */
#define WAV_AMP 90
diff --git a/apps/plugins/pong.c b/apps/plugins/pong.c
index 60d7043..27721fc 100644
--- a/apps/plugins/pong.c
+++ b/apps/plugins/pong.c
@@ -155,7 +155,7 @@ PLUGIN_HEADER
#error No keymap defined!
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef PONG_QUIT
#define PONG_QUIT BUTTON_TOPMIDDLE
#endif
@@ -398,7 +398,7 @@ int keys(struct pong *p)
#endif
/* number of ticks this function will loop reading keys */
-#ifndef HAVE_TOUCHPAD
+#ifndef HAVE_TOUCHSCREEN
int time = 4;
#else
int time = 1;
@@ -409,9 +409,9 @@ int keys(struct pong *p)
while(end > *rb->current_tick) {
key = rb->button_get_w_tmo(end - *rb->current_tick);
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
short touch_x, touch_y;
- if(key & BUTTON_TOUCHPAD)
+ if(key & BUTTON_TOUCHSCREEN)
{
touch_x = rb->button_get_data() >> 16;
touch_y = rb->button_get_data() & 0xFFFF;
diff --git a/apps/plugins/reversi/reversi-gui.h b/apps/plugins/reversi/reversi-gui.h
index 3a3cdda..a03be8e 100644
--- a/apps/plugins/reversi/reversi-gui.h
+++ b/apps/plugins/reversi/reversi-gui.h
@@ -151,7 +151,7 @@
#error No keymap defined!
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef REVERSI_QUIT
#define REVERSI_QUIT BUTTON_TOPLEFT
#endif
diff --git a/apps/plugins/rockblox.c b/apps/plugins/rockblox.c
index 27ae8e2..c458066 100644
--- a/apps/plugins/rockblox.c
+++ b/apps/plugins/rockblox.c
@@ -221,7 +221,7 @@ PLUGIN_HEADER
#error No keymap defined!
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef ROCKBLOX_OFF
#define ROCKBLOX_OFF BUTTON_TOPLEFT
#endif
diff --git a/apps/plugins/rockboy/rockboy.c b/apps/plugins/rockboy/rockboy.c
index d214807..1de2c2f 100644
--- a/apps/plugins/rockboy/rockboy.c
+++ b/apps/plugins/rockboy/rockboy.c
@@ -86,7 +86,7 @@ static void setoptions (void)
fd = open(optionsave, O_RDONLY);
if(fd < 0) /* no options to read, set defaults */
{
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
options.LEFT=BUTTON_MIDLEFT;
options.RIGHT=BUTTON_MIDRIGHT;
#else
@@ -219,7 +219,7 @@ static void setoptions (void)
#error No Keymap Defined!
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
options.UP=BUTTON_TOPMIDDLE;
options.DOWN=BUTTON_BOTTOMMIDDLE;
diff --git a/apps/plugins/rockpaint.c b/apps/plugins/rockpaint.c
index 6436d9b..32c746c 100644
--- a/apps/plugins/rockpaint.c
+++ b/apps/plugins/rockpaint.c
@@ -126,7 +126,7 @@ PLUGIN_HEADER
#error "Please define keys for this keypad"
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef ROCKPAINT_QUIT
#define ROCKPAINT_QUIT BUTTON_TOPLEFT
#endif
diff --git a/apps/plugins/sliding_puzzle.c b/apps/plugins/sliding_puzzle.c
index 9ed15f4..9303985 100644
--- a/apps/plugins/sliding_puzzle.c
+++ b/apps/plugins/sliding_puzzle.c
@@ -148,7 +148,7 @@ PLUGIN_HEADER
#error No keymap defined!
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef PUZZLE_QUIT
#define PUZZLE_QUIT BUTTON_TOPLEFT
#endif
@@ -676,7 +676,7 @@ enum plugin_status plugin_start(const struct plugin_api* api, const void* parame
rb->lcd_putsxy(0, 28, "[MODE] shuffle");
rb->lcd_putsxy(0, 38, "[MENU] change pic");
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
rb->lcd_putsxy(0, 18, PUZZLE_QUIT_TEXT " to stop");
rb->lcd_putsxy(0, 28, PUZZLE_SHUFFLE_TEXT " shuffle");
rb->lcd_putsxy(0, 38, PUZZLE_PICTURE_TEXT " change pic");
diff --git a/apps/plugins/snake.c b/apps/plugins/snake.c
index 21dcebb..0f59234 100644
--- a/apps/plugins/snake.c
+++ b/apps/plugins/snake.c
@@ -149,7 +149,7 @@ PLUGIN_HEADER
#error No keymap defined!
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef SNAKE_QUIT
#define SNAKE_QUIT BUTTON_TOPLEFT
#endif
diff --git a/apps/plugins/snake2.c b/apps/plugins/snake2.c
index ff86853..1bddeb6 100644
--- a/apps/plugins/snake2.c
+++ b/apps/plugins/snake2.c
@@ -297,7 +297,7 @@ PLUGIN_HEADER
#error No keymap defined!
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef SNAKE2_LEFT
#define SNAKE2_LEFT BUTTON_MIDLEFT
#endif
diff --git a/apps/plugins/sokoban.c b/apps/plugins/sokoban.c
index 4e8263a..f8e7368 100644
--- a/apps/plugins/sokoban.c
+++ b/apps/plugins/sokoban.c
@@ -280,7 +280,7 @@ PLUGIN_HEADER
#error No keymap defined!
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef SOKOBAN_LEFT
#define SOKOBAN_LEFT BUTTON_MIDLEFT
#endif
@@ -1240,7 +1240,7 @@ static int sokoban_menu(void)
rb->lcd_putsxy(3, 56, "[SELECT+UP] Next Level");
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
rb->lcd_putsxy(3, 6, SOKOBAN_MENU_NAME " Menu");
rb->lcd_putsxy(3, 16, SOKOBAN_UNDO_NAME " Undo");
rb->lcd_putsxy(3, 26, SOKOBAN_REDO_NAME " Redo");
diff --git a/apps/plugins/solitaire.c b/apps/plugins/solitaire.c
index 385aa11..2baea48 100644
--- a/apps/plugins/solitaire.c
+++ b/apps/plugins/solitaire.c
@@ -307,7 +307,7 @@ static const struct plugin_api* rb;
#error No keymap defined!
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
//#ifndef SOL_QUIT
//# define SOL_QUIT BUTTON_TOPLEFT
//endif
diff --git a/apps/plugins/spacerocks.c b/apps/plugins/spacerocks.c
index ac6ff4e..21cfb1e 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 */
#error No keymap defined!
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef AST_PAUSE
#define AST_PAUSE BUTTON_CENTER
#endif
diff --git a/apps/plugins/star.c b/apps/plugins/star.c
index 23bfd3c..401519b 100644
--- a/apps/plugins/star.c
+++ b/apps/plugins/star.c
@@ -237,7 +237,7 @@ PLUGIN_HEADER
#error No keymap defined!
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
//#ifndef STAR_QUIT
//#define STAR_QUIT BUTTON_TOPLEFT
//#define STAR_QUIT_NAME "[TOPLEFT]"
@@ -1075,7 +1075,7 @@ static int star_menu(void)
"[PLAY+RIGHT] Reset level\n"
"[PLAY+UP] Next level", true);
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
star_display_text("KEYS\n\n"
STAR_TOGGLE_CONTROL_NAME " Toggle Control\n"
STAR_QUIT_NAME " Exit\n"
diff --git a/apps/plugins/starfield.c b/apps/plugins/starfield.c
index 0544569..53198d0 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 */
#define STARFIELD_QUIT BUTTON_POWER
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef STARFIELD_QUIT
#define STARFIELD_QUIT BUTTON_TOPLEFT
#endif
diff --git a/apps/plugins/stopwatch.c b/apps/plugins/stopwatch.c
index 6bd6d2b..ae71a12 100644
--- a/apps/plugins/stopwatch.c
+++ b/apps/plugins/stopwatch.c
@@ -154,7 +154,7 @@ PLUGIN_HEADER
#error No keymap defined!
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef STOPWATCH_QUIT
#define STOPWATCH_QUIT BUTTON_TOPLEFT
#endif
diff --git a/apps/plugins/sudoku/sudoku.h b/apps/plugins/sudoku/sudoku.h
index 22abdfe..fb64ef9 100644
--- a/apps/plugins/sudoku/sudoku.h
+++ b/apps/plugins/sudoku/sudoku.h
@@ -190,7 +190,7 @@
#error No keymap defined!
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef SUDOKU_BUTTON_QUIT
#define SUDOKU_BUTTON_QUIT BUTTON_TOPLEFT
#endif
diff --git a/apps/plugins/superdom.c b/apps/plugins/superdom.c
index 64d91b7..088cdae 100644
--- a/apps/plugins/superdom.c
+++ b/apps/plugins/superdom.c
@@ -134,7 +134,7 @@ char buf[255];
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef SUPERDOM_OK
#define SUPERDOM_OK BUTTON_CENTER
#endif
diff --git a/apps/plugins/test_touchpad.c b/apps/plugins/test_touchscreen.c
index 1d4480a..84c8e96 100644
--- a/apps/plugins/test_touchpad.c
+++ b/apps/plugins/test_touchscreen.c
@@ -23,11 +23,11 @@
PLUGIN_HEADER
#if (CONFIG_KEYPAD == COWOND2_PAD)
-#define TOUCHPAD_QUIT BUTTON_POWER
-#define TOUCHPAD_TOGGLE BUTTON_MENU
+#define TOUCHSCREEN_QUIT BUTTON_POWER
+#define TOUCHSCREEN_TOGGLE BUTTON_MENU
#elif (CONFIG_KEYPAD == MROBE500_PAD)
-#define TOUCHPAD_QUIT BUTTON_POWER
-#define TOUCHPAD_TOGGLE BUTTON_RC_MODE
+#define TOUCHSCREEN_QUIT BUTTON_POWER
+#define TOUCHSCREEN_TOGGLE BUTTON_RC_MODE
#endif
static const struct plugin_api* rb;
@@ -36,13 +36,13 @@ static const struct plugin_api* rb;
enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter)
{
int button = 0;
- enum touchpad_mode mode = TOUCHPAD_BUTTON;
+ enum touchscreen_mode mode = TOUCHSCREEN_BUTTON;
/* standard stuff */
(void)parameter;
rb = api;
- rb->touchpad_set_mode(mode);
+ rb->touchscreen_set_mode(mode);
/* wait until user closes plugin */
do
@@ -99,10 +99,10 @@ enum plugin_status plugin_start(const struct plugin_api* api, const void* parame
x = 2*(LCD_WIDTH/3); y = 2*(LCD_HEIGHT/3);
}
- if (button & TOUCHPAD_TOGGLE && (button & BUTTON_REL))
+ if (button & TOUCHSCREEN_TOGGLE && (button & BUTTON_REL))
{
- mode = (mode == TOUCHPAD_POINT) ? TOUCHPAD_BUTTON : TOUCHPAD_POINT;
- rb->touchpad_set_mode(mode);
+ mode = (mode == TOUCHSCREEN_POINT) ? TOUCHSCREEN_BUTTON : TOUCHSCREEN_POINT;
+ rb->touchscreen_set_mode(mode);
}
if (button & BUTTON_REL) draw_rect = false;
@@ -115,7 +115,7 @@ enum plugin_status plugin_start(const struct plugin_api* api, const void* parame
rb->lcd_fillrect(x, y, LCD_WIDTH/3, LCD_HEIGHT/3);
}
- if (draw_rect || button & BUTTON_TOUCHPAD)
+ if (draw_rect || button & BUTTON_TOUCHSCREEN)
{
intptr_t button_data = rb->button_get_data();
x = button_data >> 16;
@@ -125,7 +125,7 @@ enum plugin_status plugin_start(const struct plugin_api* api, const void* parame
rb->lcd_fillrect(x-7, y-7, 14, 14);
/* in stylus mode, show REL position in black */
- if (mode == TOUCHPAD_POINT && (button & BUTTON_REL))
+ if (mode == TOUCHSCREEN_POINT && (button & BUTTON_REL))
rb->lcd_set_foreground(LCD_BLACK);
else
rb->lcd_set_foreground(LCD_WHITE);
@@ -135,7 +135,7 @@ enum plugin_status plugin_start(const struct plugin_api* api, const void* parame
}
rb->lcd_update();
- } while (button != TOUCHPAD_QUIT);
+ } while (button != TOUCHSCREEN_QUIT);
return PLUGIN_OK;
}
diff --git a/apps/plugins/viewer.c b/apps/plugins/viewer.c
index 7005745..8066885 100644
--- a/apps/plugins/viewer.c
+++ b/apps/plugins/viewer.c
@@ -262,7 +262,7 @@ PLUGIN_HEADER
#error No keymap defined!
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef VIEWER_QUIT
#define VIEWER_QUIT BUTTON_TOPLEFT
#endif
diff --git a/apps/plugins/vu_meter.c b/apps/plugins/vu_meter.c
index b18c4f0..4c98e6d 100644
--- a/apps/plugins/vu_meter.c
+++ b/apps/plugins/vu_meter.c
@@ -213,7 +213,7 @@ PLUGIN_HEADER
#error No keymap defined!
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef VUMETER_QUIT
#define VUMETER_QUIT BUTTON_TOPLEFT
#define LABEL_QUIT "TOPLEFT"
diff --git a/apps/plugins/wormlet.c b/apps/plugins/wormlet.c
index 5469073..6586e78 100644
--- a/apps/plugins/wormlet.c
+++ b/apps/plugins/wormlet.c
@@ -225,7 +225,7 @@ PLUGIN_HEADER
#error No keymap defined!
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef BTN_DIR_UP
#define BTN_DIR_UP BUTTON_TOPMIDDLE
#endif
diff --git a/apps/plugins/xobox.c b/apps/plugins/xobox.c
index 0faf8a2..8490d6b 100644
--- a/apps/plugins/xobox.c
+++ b/apps/plugins/xobox.c
@@ -149,7 +149,7 @@ PLUGIN_HEADER
#error No keymap defined!
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef QUIT
#define QUIT BUTTON_TOPLEFT
#endif
diff --git a/apps/plugins/zxbox/keymaps.h b/apps/plugins/zxbox/keymaps.h
index 932c360..777ddcc 100644
--- a/apps/plugins/zxbox/keymaps.h
+++ b/apps/plugins/zxbox/keymaps.h
@@ -127,7 +127,7 @@
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef ZX_UP
#define ZX_UP BUTTON_TOPMIDDLE
#endif
diff --git a/apps/plugins/zxbox/zxbox_keyb.c b/apps/plugins/zxbox/zxbox_keyb.c
index 146d743..f57b8e4 100644
--- a/apps/plugins/zxbox/zxbox_keyb.c
+++ b/apps/plugins/zxbox/zxbox_keyb.c
@@ -138,7 +138,7 @@
#endif
-#ifdef HAVE_TOUCHPAD
+#ifdef HAVE_TOUCHSCREEN
#ifndef KBD_SELECT
#define KBD_SELECT BUTTON_CENTER
#endif