summaryrefslogtreecommitdiff
path: root/bootloader/mrobe500.c
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 /bootloader/mrobe500.c
parent965d2af61f5035dcf5179b8539785de641a9f015 (diff)
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 'bootloader/mrobe500.c')
-rwxr-xr-xbootloader/mrobe500.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/bootloader/mrobe500.c b/bootloader/mrobe500.c
index ee46eb8eb4..c71d43d40e 100755
--- a/bootloader/mrobe500.c
+++ b/bootloader/mrobe500.c
@@ -54,13 +54,13 @@ extern int line;
#if 0
struct touch_calibration_point tl, br;
-void touchpad_get_one_point(struct touch_calibration_point *p)
+void touchscreen_get_one_point(struct touch_calibration_point *p)
{
int data = 0;
int start = current_tick;
while (TIME_AFTER(start+(HZ/3), current_tick))
{
- if (button_read_device()&BUTTON_TOUCHPAD)
+ if (button_read_device()&BUTTON_TOUCHSCREEN)
{
data = button_get_last_touch();
p->val_x = data>>16;
@@ -74,7 +74,7 @@ void touchpad_get_one_point(struct touch_calibration_point *p)
#define MARGIN 25
#define LEN 7
-void touchpad_calibrate_screen(void)
+void touchscreen_calibrate_screen(void)
{
reset_screen();
printf("touch the center of the crosshairs to calibrate");
@@ -83,7 +83,7 @@ void touchpad_calibrate_screen(void)
lcd_vline(MARGIN, MARGIN-LEN, MARGIN+LEN);
lcd_update();
tl.px_x = MARGIN; tl.px_y = MARGIN;
- touchpad_get_one_point(&tl);
+ touchscreen_get_one_point(&tl);
reset_screen();
printf("touch the center of the crosshairs to calibrate");
/* get the topright value */
@@ -91,7 +91,7 @@ void touchpad_calibrate_screen(void)
lcd_vline(LCD_WIDTH-MARGIN, LCD_HEIGHT-MARGIN-LEN, LCD_HEIGHT-MARGIN+LEN);
lcd_update();
br.px_x = LCD_WIDTH-MARGIN; br.px_y = LCD_HEIGHT-MARGIN;
- touchpad_get_one_point(&br);
+ touchscreen_get_one_point(&br);
reset_screen();
line++;
printf("tl %d %d", tl.val_x, tl.val_y);
@@ -108,7 +108,7 @@ void mrdebug(void)
int button=0;
#if 0
use_calibration(false);
- touchpad_calibrate_screen();
+ touchscreen_calibrate_screen();
use_calibration(true);
#endif
@@ -148,15 +148,15 @@ void mrdebug(void)
else if (button == BUTTON_RC_HEART)
{
printf("POINT");
- touchpad_set_mode(TOUCHPAD_POINT);
+ touchscreen_set_mode(TOUCHSCREEN_POINT);
}
else if (button == BUTTON_RC_MODE)
{
printf("BUTTON");
- touchpad_set_mode(TOUCHPAD_BUTTON);
+ touchscreen_set_mode(TOUCHSCREEN_BUTTON);
}
#if 1
- else if (button&BUTTON_TOUCHPAD)
+ else if (button&BUTTON_TOUCHSCREEN)
{
if (button&BUTTON_REL)
continue;