From 9f35c6f97e2ceb503bff36a9dd59b30bf0455a5a Mon Sep 17 00:00:00 2001 From: OBattler Date: Sun, 27 Jul 2025 17:52:10 +0200 Subject: [PATCH] Save the selected keyboard type and remove an excess logging line in keyboard.c. --- src/device/keyboard.c | 1 - src/qt/qt_settingsinput.cpp | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/device/keyboard.c b/src/device/keyboard.c index 02fbf0179..0acc93505 100644 --- a/src/device/keyboard.c +++ b/src/device/keyboard.c @@ -601,6 +601,5 @@ keyboard_get_ndev(void) void keyboard_add_device(void) { - pclog("keyboard_type = %i (%s)\n", keyboard_type, keyboard_get_internal_name(keyboard_type)); device_add(keyboard_devices[keyboard_type].device); } diff --git a/src/qt/qt_settingsinput.cpp b/src/qt/qt_settingsinput.cpp index 1a425c835..6296cd1e9 100644 --- a/src/qt/qt_settingsinput.cpp +++ b/src/qt/qt_settingsinput.cpp @@ -91,7 +91,9 @@ SettingsInput::~SettingsInput() void SettingsInput::save() { + keyboard_type = ui->comboBoxKeyboard->currentData().toInt(); mouse_type = ui->comboBoxMouse->currentData().toInt(); + joystick_type = ui->comboBoxJoystick->currentData().toInt(); // Copy accelerators from working set to global set