mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-18 01:22:38 -05:00
nwztools/plattools: switch to BACK key to quit
The power off/option does not exist on some models. Change-Id: Ifb45293b3b3faa96d9fece2340cbd98299a4a0b7
This commit is contained in:
parent
d42b43c786
commit
794104dd17
5 changed files with 22 additions and 22 deletions
|
|
@ -24,7 +24,7 @@ int main(int argc, char **argv)
|
|||
{
|
||||
/* clear screen and display welcome message */
|
||||
nwz_lcdmsg(true, 0, 0, "test_adc");
|
||||
nwz_lcdmsg(false, 0, 2, "PWR OFF: quit");
|
||||
nwz_lcdmsg(false, 0, 2, "BACK: quit");
|
||||
/* open input device */
|
||||
int input_fd = nwz_key_open();
|
||||
if(input_fd < 0)
|
||||
|
|
@ -55,7 +55,7 @@ int main(int argc, char **argv)
|
|||
struct input_event evt;
|
||||
if(nwz_key_read_event(input_fd, &evt) != 1)
|
||||
continue;
|
||||
if(nwz_key_event_get_keycode(&evt) == NWZ_KEY_OPTION && !nwz_key_event_is_press(&evt))
|
||||
if(nwz_key_event_get_keycode(&evt) == NWZ_KEY_BACK && !nwz_key_event_is_press(&evt))
|
||||
break;
|
||||
}
|
||||
/* finish nicely */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue