forked from len0rd/rockbox
Commit FS#9308: differentiate between TOUCHPAD & TOUCHSCREEN
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18338 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
965d2af61f
commit
1392dc2144
81 changed files with 233 additions and 231 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue