Add extra keys default input when using GUI.
We also set the extra keys for controller input when using `defaults` option.
This commit is contained in:
parent
b358c051c9
commit
54991c5b14
|
@ -1672,6 +1672,9 @@ public:
|
||||||
if (defkeys_joystick[i].joy)
|
if (defkeys_joystick[i].joy)
|
||||||
a.push_back(defkeys_joystick[i]);
|
a.push_back(defkeys_joystick[i]);
|
||||||
|
|
||||||
|
if (extrakeys_joystick[i].joy)
|
||||||
|
a.push_back(extrakeys_joystick[i]);
|
||||||
|
|
||||||
tc->SetValue(wxJoyKeyTextCtrl::ToString(a));
|
tc->SetValue(wxJoyKeyTextCtrl::ToString(a));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
extern const wxString joynames[NUM_KEYS];
|
extern const wxString joynames[NUM_KEYS];
|
||||||
extern wxJoyKeyBinding defkeys_keyboard[NUM_KEYS]; // keyboard defaults
|
extern wxJoyKeyBinding defkeys_keyboard[NUM_KEYS]; // keyboard defaults
|
||||||
extern wxJoyKeyBinding defkeys_joystick[NUM_KEYS]; // joystick defaults
|
extern wxJoyKeyBinding defkeys_joystick[NUM_KEYS]; // joystick defaults
|
||||||
|
extern wxJoyKeyBinding extrakeys_joystick[NUM_KEYS];// extra joystick defaults
|
||||||
|
|
||||||
extern struct opts_t {
|
extern struct opts_t {
|
||||||
opts_t();
|
opts_t();
|
||||||
|
|
Loading…
Reference in New Issue