Skip to content
Permalink
Browse files

Set default binding for keyboard.

We set using the QWERT keyboard as a reference. These keys should
be located at fixed positions on most QWERT keyboards.

KEY    | KEYBOARD
-------|----------
UP     | W
DOWN   | S
LEFT   | A
RIGHT  | D
A      | L
B      | K
R      | O
L      | I
SELECT | Backspace
START  | Enter

- Fix #463.
  • Loading branch information
denisfa authored and rkitover committed Jul 18, 2019
1 parent 78bbe14 commit 6de45d4ed2b7745eb949738fdfbd7715166c8015
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/wx/opts.cpp
@@ -143,9 +143,9 @@ const wxString joynames[NUM_KEYS] = {
};

wxJoyKeyBinding defkeys_keyboard[NUM_KEYS] = {
WJKB(WXK_UP), WJKB(WXK_DOWN), WJKB(WXK_LEFT), WJKB(WXK_RIGHT),
WJKB(wxT('A')), WJKB(wxT('S')), WJKB(wxT('Q')), WJKB(wxT('W')),
WJKB(wxT('Z')), WJKB(wxT('X')),
WJKB(wxT('W')), WJKB(wxT('S')), WJKB(wxT('A')), WJKB(wxT('D')),
WJKB(wxT('L')), WJKB(wxT('K')), WJKB(wxT('I')), WJKB(wxT('O')),
WJKB(WXK_BACK), WJKB(WXK_RETURN),
WJKB(0), WJKB(0), WJKB(0), WJKB(0),
WJKB(0), WJKB(0), WJKB(0), WJKB(0),
WJKB(WXK_SPACE), WJKB(0), WJKB(0)

0 comments on commit 6de45d4

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