Skip to content

Commit

Permalink
update settings info
Browse files Browse the repository at this point in the history
  • Loading branch information
y5nw committed Dec 16, 2024
1 parent 5c4cce1 commit dad4388
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 4 additions & 3 deletions builtin/settingtypes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -151,14 +151,15 @@ enable_hotbar_mouse_wheel (Hotbar: Enable mouse wheel for selection) bool true
# Requires: keyboard_mouse
invert_hotbar_mouse_wheel (Hotbar: Invert mouse wheel direction) bool false

# Save key controls as scancodes (position on the keyboard) instead of keycodes (the
# SDL only: Save key controls as scancodes (position on the keyboard) instead of keycodes (the
# symbol marked on the key). This allows using the same physical keys with multiple
# keyboard layouts, but the new scancode-based settings can not be parsed by older clients.
# Note that this only affects how keybindings are saved in the settings. In particular,
# key controls are always matched based on scancodes regardless of this setting.
# key controls are always matched based on scancodes regardless of this setting if SDL is used.
# Key controls are matched based on keycodes for non-SDL devices.
#
# Requires: !touch_controls
save_keys_as_scancodes (Save keybindings as scancodes) bool false
save_keys_as_scancodes (Save keybindings as scancodes) bool true

[*Touchscreen]

Expand Down
2 changes: 2 additions & 0 deletions src/gui/guiKeyChangeMenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ void GUIKeyChangeMenu::regenerateGui(v2u32 screensize)
offset += v2s32(0, 25);
}

#if USE_SDL2
{
s32 option_x = offset.X;
s32 option_y = offset.Y + 5 * s;
Expand All @@ -190,6 +191,7 @@ void GUIKeyChangeMenu::regenerateGui(v2u32 screensize)
}
offset += v2s32(0, 25 * s);
}
#endif

{
core::rect<s32> rect(0, 0, 100 * s, 30 * s);
Expand Down

0 comments on commit dad4388

Please sign in to comment.