mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
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:
parent
fd0f742cf2
commit
caf2011311
2 changed files with 96 additions and 20 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue