diff options
Diffstat (limited to 'client/menu/settings/input/input_manager.gd')
-rw-r--r-- | client/menu/settings/input/input_manager.gd | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/menu/settings/input/input_manager.gd b/client/menu/settings/input/input_manager.gd index 640410d0..b612bde3 100644 --- a/client/menu/settings/input/input_manager.gd +++ b/client/menu/settings/input/input_manager.gd @@ -93,12 +93,12 @@ func get_event_type(input_event: InputEvent) -> EventType: func display_input_event(input_event: InputEvent) -> String: if input_event is InputEventKey: - return tr("c.settings.input.keyboard") % OS.get_keycode_string(input_event.physical_keycode) + return tr("c.settings.input.keyboard").format([OS.get_keycode_string(input_event.physical_keycode)]) elif input_event is InputEventMouseButton: - return tr("c.settings.input.mouse_button") % input_event.button_index + return tr("c.settings.input.mouse_button").format([input_event.button_index]) elif input_event is InputEventJoypadButton: - return tr("c.settings.input.joypad") % input_event.button_index + return tr("c.settings.input.joypad").format([input_event.button_index]) elif input_event is InputEventJoypadMotion: - return tr("c.settings.input.joypad_axis") % [input_event.axis] + return tr("c.settings.input.joypad_axis").format([input_event.axis]) else: return tr("c.settings.input.other_event") |