Added the notion of a 'cancel' button, and unified all the 'cancel' menu IDs to be kCancelMenuID (ie -1). I've slaved the Menu button (ie Esc on win, 'Start' button on PSP) to this - the idea being, if you hit the Menu button to bring up a menu, hitting it again will dismiss it without doing anything, which is pretty standard behavior for most console/computer games.
This commit is contained in:
@@ -25,6 +25,8 @@
|
||||
#define JGUI_INITIAL_DELAY 0.4
|
||||
#define JGUI_REPEAT_DELAY 0.2
|
||||
|
||||
const int kCancelMenuID = -1;
|
||||
|
||||
class JGuiListener
|
||||
{
|
||||
public:
|
||||
@@ -71,6 +73,7 @@ class JGuiController
|
||||
|
||||
|
||||
JButton mActionButton;
|
||||
JButton mCancelButton;
|
||||
int mCurr;
|
||||
int mStyle;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user