remove problematic default joy binds #88
The default keyboard/joystick bindings for the "special" keys have assumptions about axis numbers that do not hold with modern game pads. For reference, the 360 controller has the following mappings: Axis 0/1: left stick Axis 3/4: right stick Axis 2: left trigger Axis 5: right trigger This triggers another bug causing the depressed state of a trigger axis to fire continuously. In this case, this is the left trigger on a 360 controller which is axis 2. This triggers yet another bug where a stream of joystick events blocks keyboard events from registering, resulting in hotkeys like ctrl+p to pause not working. Replace all joystick binds for special keys with null values. With this change, a default installation of vbam will not trigger the hotkeys not working bug when a joystick is plugged in. The other bugs here mentioned also need to be fixed.
This commit is contained in:
parent
5da48769ae
commit
539027ca16
|
@ -133,9 +133,9 @@ wxJoyKeyBinding defkeys[NUM_KEYS * 2] = {
|
||||||
{ wxT('X') }, { 0, WXJB_BUTTON, 1 }, { wxT('Z') }, { 1, WXJB_BUTTON, 1 },
|
{ wxT('X') }, { 0, WXJB_BUTTON, 1 }, { wxT('Z') }, { 1, WXJB_BUTTON, 1 },
|
||||||
{ wxT('A') }, { 2, WXJB_BUTTON, 1 }, { wxT('S') }, { 3, WXJB_BUTTON, 1 },
|
{ wxT('A') }, { 2, WXJB_BUTTON, 1 }, { wxT('S') }, { 3, WXJB_BUTTON, 1 },
|
||||||
{ WXK_BACK }, { 4, WXJB_BUTTON, 1 }, { WXK_RETURN }, { 5, WXJB_BUTTON, 1 },
|
{ WXK_BACK }, { 4, WXJB_BUTTON, 1 }, { WXK_RETURN }, { 5, WXJB_BUTTON, 1 },
|
||||||
{ WXK_NUMPAD_UP }, { 2, WXJB_AXIS_PLUS, 1 }, { WXK_NUMPAD_DOWN }, { 2, WXJB_AXIS_MINUS, 1 },
|
{ WXK_NUMPAD_UP }, { 0 }, { WXK_NUMPAD_DOWN }, { 0 },
|
||||||
{ WXK_NUMPAD_LEFT }, { 3, WXJB_AXIS_MINUS, 1 }, { WXK_NUMPAD_RIGHT }, { 3, WXJB_AXIS_PLUS, 1 },
|
{ WXK_NUMPAD_LEFT }, { 0 }, { WXK_NUMPAD_RIGHT }, { 0 },
|
||||||
{ WXK_NUMPAD_PAGEUP }, { 4, WXJB_AXIS_PLUS, 1 }, { WXK_NUMPAD_PAGEDOWN }, { 4, WXJB_AXIS_MINUS, 1 },
|
{ WXK_NUMPAD_PAGEUP }, { 0 }, { WXK_NUMPAD_PAGEDOWN }, { 0 },
|
||||||
{ wxT('W') }, { 0 }, { wxT('Q') }, { 0 },
|
{ wxT('W') }, { 0 }, { wxT('Q') }, { 0 },
|
||||||
{ WXK_SPACE }, { 0 }, { 0 }, { 0 },
|
{ WXK_SPACE }, { 0 }, { 0 }, { 0 },
|
||||||
{ 0 }, { 0 }
|
{ 0 }, { 0 }
|
||||||
|
|
Loading…
Reference in New Issue