mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
TouchControls: Implement an option for dig/place buttons (#15845)
This commit is contained in:
parent
1f14b7cb1b
commit
ead44a27ca
15 changed files with 540 additions and 88 deletions
|
@ -28,4 +28,11 @@ void migrate_settings()
|
|||
}
|
||||
g_settings->remove("disable_anticheat");
|
||||
}
|
||||
|
||||
// Convert touch_use_crosshair to touch_interaction_style
|
||||
if (g_settings->existsLocal("touch_use_crosshair")) {
|
||||
bool value = g_settings->getBool("touch_use_crosshair");
|
||||
g_settings->set("touch_interaction_style", value ? "tap_crosshair" : "tap");
|
||||
g_settings->remove("touch_use_crosshair");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue