Save the selected keyboard type and remove an excess logging line in keyboard.c.

This commit is contained in:
OBattler
2025-07-27 17:52:10 +02:00
parent 0f8ec8d0e7
commit 9f35c6f97e
2 changed files with 2 additions and 1 deletions

View File

@@ -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);
}

View File

@@ -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