mirror of
https://github.com/visualboyadvance-m/visualboyadvance-m
synced 2025-10-05 23:52:49 +02:00
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:
committed by
Rafael Kitover
parent
b358c051c9
commit
54991c5b14
@@ -1672,6 +1672,9 @@ public:
|
||||
if (defkeys_joystick[i].joy)
|
||||
a.push_back(defkeys_joystick[i]);
|
||||
|
||||
if (extrakeys_joystick[i].joy)
|
||||
a.push_back(extrakeys_joystick[i]);
|
||||
|
||||
tc->SetValue(wxJoyKeyTextCtrl::ToString(a));
|
||||
}
|
||||
}
|
||||
|
@@ -3,8 +3,9 @@
|
||||
|
||||
#define NUM_KEYS 21
|
||||
extern const wxString joynames[NUM_KEYS];
|
||||
extern wxJoyKeyBinding defkeys_keyboard[NUM_KEYS]; // keyboard defaults
|
||||
extern wxJoyKeyBinding defkeys_joystick[NUM_KEYS]; // joystick defaults
|
||||
extern wxJoyKeyBinding defkeys_keyboard[NUM_KEYS]; // keyboard defaults
|
||||
extern wxJoyKeyBinding defkeys_joystick[NUM_KEYS]; // joystick defaults
|
||||
extern wxJoyKeyBinding extrakeys_joystick[NUM_KEYS];// extra joystick defaults
|
||||
|
||||
extern struct opts_t {
|
||||
opts_t();
|
||||
|
Reference in New Issue
Block a user