Onda's: add touchscreen boot menu for targets without/not much physical buttons (VX777)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22416 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Maurus Cuelenaere 2009-08-19 00:26:06 +00:00
parent fd0f742cf2
commit caf2011311
2 changed files with 96 additions and 20 deletions

View file

@ -182,6 +182,9 @@ int button_read_device(int *data)
if(cur_touch != 0 && pen_down)
{
ret |= touchscreen_to_pixels(cur_touch >> 16, cur_touch & 0xFFFF, data);
#if CONFIG_ORIENTATION == SCREEN_LANDSCAPE
*data = (*data & 0xFFFF) | ((LCD_HEIGHT - (*data >> 16)) << 16);
#endif
if( UNLIKELY(!is_backlight_on(true)) )
*data = 0;