1
0
Fork 0
forked from len0rd/rockbox

ypr0: Allow dection of multiple button presses at the same time.

Reading from /dev/r0Btn only allowed to read one button at a time. Reading GPIO
directly via ioctl() doesn't have this limitation.

This adds a more complete GPIO list also.

Change-Id: If47b0846472f0817305dbf930731255f875e0269
Author: Lorenzo Miori
This commit is contained in:
Thomas Martitz 2012-01-23 14:50:31 +01:00
parent 01525419af
commit 016bc2452f
3 changed files with 62 additions and 70 deletions

View file

@ -35,7 +35,7 @@ void button_close_device(void);
#define BUTTON_POWER 0x00000080
#define BUTTON_SELECT 0x00000100
#define BUTTON_MAIN 0x1FF /* all buttons */
#define BUTTON_MAIN (BUTTON_UP|BUTTON_DOWN|BUTTON_LEFT|BUTTON_RIGHT|BUTTON_USER|BUTTON_MENU|BUTTON_BACK|BUTTON_POWER|BUTTON_SELECT) /* all buttons */
/* Software power-off */
#define POWEROFF_BUTTON BUTTON_POWER