mirror of
https://github.com/minetest/minetest.git
synced 2025-04-03 17:02:42 +02:00
Fix touchscreen crash due to missing rangeselect
This commit is contained in:
@ -87,7 +87,12 @@ void set_default_settings()
|
|||||||
settings->setDefault("keymap_cmd_local", ".");
|
settings->setDefault("keymap_cmd_local", ".");
|
||||||
settings->setDefault("keymap_minimap", "KEY_KEY_V");
|
settings->setDefault("keymap_minimap", "KEY_KEY_V");
|
||||||
settings->setDefault("keymap_console", "KEY_F10");
|
settings->setDefault("keymap_console", "KEY_F10");
|
||||||
|
#if HAVE_TOUCHSCREENGUI
|
||||||
|
// See https://github.com/minetest/minetest/issues/12792
|
||||||
|
settings->setDefault("keymap_rangeselect", "KEY_KEY_R");
|
||||||
|
#else
|
||||||
settings->setDefault("keymap_rangeselect", "");
|
settings->setDefault("keymap_rangeselect", "");
|
||||||
|
#endif
|
||||||
settings->setDefault("keymap_freemove", "KEY_KEY_K");
|
settings->setDefault("keymap_freemove", "KEY_KEY_K");
|
||||||
settings->setDefault("keymap_pitchmove", "KEY_KEY_P");
|
settings->setDefault("keymap_pitchmove", "KEY_KEY_P");
|
||||||
settings->setDefault("keymap_fastmove", "KEY_KEY_J");
|
settings->setDefault("keymap_fastmove", "KEY_KEY_J");
|
||||||
|
Reference in New Issue
Block a user