Skip to content
Permalink
Browse files

Fix Autofire {L,R}.

We were using directionals (left and right) instead.
  • Loading branch information
denisfa authored and rkitover committed Aug 20, 2019
1 parent 4993cb8 commit cf47942f09b92a256ed2c3a90962d6fae2adc3d1
Showing with 6 additions and 6 deletions.
  1. +4 −4 src/wx/cmdevents.cpp
  2. +2 −2 src/wx/guiinit.cpp
@@ -1412,18 +1412,18 @@ EVT_HANDLER(JoypadAutofireL, "Autofire L (toggle)")
{
bool menuPress;
GetMenuOptionBool("JoypadAutofireL", menuPress);
toggleBitVar(&menuPress, &autofire, KEYM_LEFT);
toggleBitVar(&menuPress, &autofire, KEYM_L);
SetMenuOption("JoypadAutofireL", menuPress ? 1 : 0);
GetMenuOptionInt("JoypadAutofireL", autofire, KEYM_LEFT);
GetMenuOptionInt("JoypadAutofireL", autofire, KEYM_L);
}

EVT_HANDLER(JoypadAutofireR, "Autofire R (toggle)")
{
bool menuPress;
GetMenuOptionBool("JoypadAutofireR", menuPress);
toggleBitVar(&menuPress, &autofire, KEYM_RIGHT);
toggleBitVar(&menuPress, &autofire, KEYM_R);
SetMenuOption("JoypadAutofireR", menuPress ? 1 : 0);
GetMenuOptionInt("JoypadAutofireR", autofire, KEYM_RIGHT);
GetMenuOptionInt("JoypadAutofireR", autofire, KEYM_R);
}

EVT_HANDLER_MASK(LoadGameRecent, "Load most recent save", CMDEN_SAVST)
@@ -2946,8 +2946,8 @@ bool MainFrame::BindControls()
MenuOptionBool("LoadGameAutoLoad", gopts.autoload_state);
MenuOptionIntMask("JoypadAutofireA", autofire, KEYM_A);
MenuOptionIntMask("JoypadAutofireB", autofire, KEYM_B);
MenuOptionIntMask("JoypadAutofireL", autofire, KEYM_LEFT);
MenuOptionIntMask("JoypadAutofireR", autofire, KEYM_RIGHT);
MenuOptionIntMask("JoypadAutofireL", autofire, KEYM_L);
MenuOptionIntMask("JoypadAutofireR", autofire, KEYM_R);
MenuOptionBool("EmulatorSpeedupToggle", turbo);
MenuOptionIntRadioValue("LinkType0Nothing", gopts.gba_link_type, 0);
MenuOptionIntRadioValue("LinkType1Cable", gopts.gba_link_type, 1);

0 comments on commit cf47942

Please sign in to comment.
You can’t perform that action at this time.