forked from len0rd/rockbox
iPod: Make the hold switch bring up the in-game menu.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9487 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
bb322695b9
commit
4dc76573f0
1 changed files with 10 additions and 1 deletions
|
@ -16,7 +16,10 @@
|
||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*
|
*
|
||||||
* $Log$
|
* $Log$
|
||||||
* Revision 1.9 2006/04/03 20:03:02 kkurbjun
|
* Revision 1.10 2006/04/04 12:00:53 dave
|
||||||
|
* iPod: Make the hold switch bring up the in-game menu.
|
||||||
|
*
|
||||||
|
* Revision 1.9 2006-04-03 20:03:02 kkurbjun
|
||||||
* Updates doom menu w/ new graphics, now requires rockdoom.wad: http://alamode.mines.edu/~kkurbjun/rockdoom.wad
|
* Updates doom menu w/ new graphics, now requires rockdoom.wad: http://alamode.mines.edu/~kkurbjun/rockdoom.wad
|
||||||
*
|
*
|
||||||
* Revision 1.8 2006-04-03 17:11:42 kkurbjun
|
* Revision 1.8 2006-04-03 17:11:42 kkurbjun
|
||||||
|
@ -160,7 +163,13 @@ int getkey(event_t * event)
|
||||||
event->type = ev_keyup;
|
event->type = ev_keyup;
|
||||||
hswitch=0;
|
hswitch=0;
|
||||||
}
|
}
|
||||||
|
#if CONFIG_KEYPAD == IPOD_4G_PAD
|
||||||
|
/* Bring up the menu */
|
||||||
|
event->data1=KEY_ESCAPE;
|
||||||
|
#else
|
||||||
|
/* Enable run */
|
||||||
event->data1=KEY_RSHIFT;
|
event->data1=KEY_RSHIFT;
|
||||||
|
#endif
|
||||||
D_PostEvent(event);
|
D_PostEvent(event);
|
||||||
}
|
}
|
||||||
holdbutton=rb->button_hold();
|
holdbutton=rb->button_hold();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue