forked from len0rd/rockbox
Pluginlib: Add support for general buttons. Add menu and quit buttons to Reversi. MRobe 500: Modify touch handler to return the previous data always rather than 0 when there is no touch.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22110 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e9b061a717
commit
0131a3873e
12 changed files with 439 additions and 220 deletions
|
|
@ -42,11 +42,10 @@
|
|||
#define REVERSI_BUTTON_DOWN BUTTON_DOWN
|
||||
#define REVERSI_BUTTON_LEFT BUTTON_LEFT
|
||||
#define REVERSI_BUTTON_RIGHT BUTTON_RIGHT
|
||||
#define REVERSI_BUTTON_MAKE_MOVE_PRE BUTTON_MENU
|
||||
#define REVERSI_BUTTON_MAKE_MOVE (BUTTON_MENU | BUTTON_REL)
|
||||
#define REVERSI_BUTTON_ALT_MAKE_MOVE (BUTTON_MENU | BUTTON_DOWN)
|
||||
#define REVERSI_BUTTON_MENU_PRE BUTTON_MENU
|
||||
#define REVERSI_BUTTON_MENU (BUTTON_MENU | BUTTON_REPEAT)
|
||||
#define REVERSI_BUTTON_MAKE_MOVE BUTTON_MENU
|
||||
#define REVERSI_BUTTON_MAKE_MOVE_SHORTPRESS
|
||||
#define REVERSI_BUTTON_MENU_LONGPRESS
|
||||
#define REVERSI_BUTTON_MENU BUTTON_MENU
|
||||
|
||||
#elif (CONFIG_KEYPAD == IRIVER_H100_PAD) || \
|
||||
(CONFIG_KEYPAD == IRIVER_H300_PAD)
|
||||
|
|
@ -63,10 +62,8 @@
|
|||
(CONFIG_KEYPAD == IPOD_1G2G_PAD)
|
||||
#define REVERSI_BUTTON_UP BUTTON_MENU
|
||||
#define REVERSI_BUTTON_DOWN BUTTON_PLAY
|
||||
#define REVERSI_BUTTON_LEFT BUTTON_LEFT
|
||||
#define REVERSI_BUTTON_RIGHT BUTTON_RIGHT
|
||||
#define REVERSI_BUTTON_ALT_LEFT BUTTON_SCROLL_BACK
|
||||
#define REVERSI_BUTTON_ALT_RIGHT BUTTON_SCROLL_FWD
|
||||
#define REVERSI_BUTTON_LEFT (BUTTON_LEFT | BUTTON_SCROLL_BACK)
|
||||
#define REVERSI_BUTTON_RIGHT (BUTTON_RIGHT | BUTTON_SCROLL_FWD)
|
||||
#define REVERSI_BUTTON_MAKE_MOVE (BUTTON_SELECT | BUTTON_REL)
|
||||
#define REVERSI_BUTTON_MENU (BUTTON_MENU | BUTTON_SELECT)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue