From: Shamus Hammons Date: Sat, 23 Aug 2003 16:06:36 +0000 (+0000) Subject: Fixed a bad variable definition X-Git-Tag: 1.0.5~15 X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;ds=inline;h=64df99bc95433044962e4d8910764143308aec7b;p=virtualjaguar Fixed a bad variable definition --- diff --git a/src/joystick.cpp b/src/joystick.cpp index 3c496ce..6ed1fa1 100644 --- a/src/joystick.cpp +++ b/src/joystick.cpp @@ -44,7 +44,8 @@ static uint8 joystick_ram[4]; static uint8 joypad_0_buttons[21]; static uint8 joypad_1_buttons[21]; extern bool finished; -extern bool showGUI, GUIKeyHeld = false; +extern bool showGUI; +bool GUIKeyHeld = false; extern int start_logging; int gpu_start_log = 0; int op_start_log = 0; @@ -119,6 +120,7 @@ void joystick_exec(void) if (keystate[SDLK_z]) joypad_0_buttons[BUTTON_C] = 0x01; if (keystate[SDLK_x]) joypad_0_buttons[BUTTON_B] = 0x01; if (keystate[SDLK_c]) joypad_0_buttons[BUTTON_A] = 0x01; +//I may yet move these to O and P... if (keystate[SDLK_QUOTE]) joypad_0_buttons[BUTTON_OPTION] = 0x01; if (keystate[SDLK_RETURN]) joypad_0_buttons[BUTTON_PAUSE] = 0x01;