From 6de45d4ed2b7745eb949738fdfbd7715166c8015 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ed=C3=AAnis=20Freindorfer=20Azevedo?= Date: Thu, 18 Jul 2019 12:37:46 -0300 Subject: [PATCH] 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. --- src/wx/opts.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wx/opts.cpp b/src/wx/opts.cpp index f21f8fea..40dac7dc 100644 --- a/src/wx/opts.cpp +++ b/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)