forked from len0rd/rockbox
To avoid having to use the main unit when accidentally launching a plugin from the remote, plugins now support remote quit
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10157 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
7bbf53eae5
commit
0e027bd90c
39 changed files with 276 additions and 26 deletions
|
@ -57,6 +57,7 @@ PLUGIN_HEADER
|
|||
#define PONG_LEFT_DOWN BUTTON_DOWN
|
||||
#define PONG_RIGHT_UP BUTTON_ON
|
||||
#define PONG_RIGHT_DOWN BUTTON_MODE
|
||||
#define PONG_RC_QUIT BUTTON_RC_STOP
|
||||
|
||||
#elif (CONFIG_KEYPAD == IPOD_4G_PAD) || \
|
||||
(CONFIG_KEYPAD == IPOD_3G_PAD)
|
||||
|
@ -298,7 +299,11 @@ int keys(struct pong *p)
|
|||
while(end > *rb->current_tick) {
|
||||
key = rb->button_get_w_tmo(end - *rb->current_tick);
|
||||
|
||||
if(key & PONG_QUIT)
|
||||
if(key & PONG_QUIT
|
||||
#ifdef PONG_RC_QUIT
|
||||
|| key & PONG_RC_QUIT
|
||||
#endif
|
||||
)
|
||||
return 0; /* exit game NOW */
|
||||
|
||||
if(key & PONG_LEFT_DOWN) /* player left goes down */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue