forked from len0rd/rockbox
hosted: Have common /dev/input code handle touchscreens.
With this we should be able to consolidate some of the hosted variations. Change-Id: Ie03631b4e700e3a0adcdc1b8476237384f0ace1a
This commit is contained in:
parent
f38109f8ed
commit
3270daf2c4
2 changed files with 140 additions and 35 deletions
|
@ -125,10 +125,16 @@ void system_exception_wait(void)
|
|||
backlight_hw_on();
|
||||
backlight_hw_brightness(DEFAULT_BRIGHTNESS_SETTING);
|
||||
/* wait until button press and release */
|
||||
while(button_read_device() != 0) {}
|
||||
while(button_read_device() == 0) {}
|
||||
while(button_read_device() != 0) {}
|
||||
while(button_read_device() == 0) {}
|
||||
#ifdef HAVE_BUTTON_DATA
|
||||
int bdata;
|
||||
#define BDATA &bdata
|
||||
#else
|
||||
#define BDATA
|
||||
#endif
|
||||
while(button_read_device(BDATA) != 0) {}
|
||||
while(button_read_device(BDATA) == 0) {}
|
||||
while(button_read_device(BDATA) != 0) {}
|
||||
while(button_read_device(BDATA) == 0) {}
|
||||
}
|
||||
|
||||
bool hostfs_removable(IF_MD_NONVOID(int drive))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue