Fix silly key mapping bug. Update native with SDL gamepad support (that

needs more work).
This commit is contained in:
Henrik Rydgård committed 2013-07-14 13:52:38 +02:00
1 parent dcb400f85d
commit 4a49ec2e40
2 files changed
+6 -4

No files matched your search

+5 -3
View File
@@ -698,9 +698,11 @@ void ControlsScreen::update(InputState &input) {
void KeyMappingNewKeyDialog::key(const KeyInput &key) {
if (key.flags & KEY_DOWN) {
last_kb_deviceid = key.deviceId;
last_kb_key = key.keyCode;
last_axis_id = -1;
if (key.keyCode != KEYCODE_EXT_MOUSEBUTTON_1) {
last_kb_deviceid = key.deviceId;
last_kb_key = key.keyCode;
last_axis_id = -1;
}
}
}