1
0
Fork 0
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:
grorp 2025-03-21 07:06:44 -04:00 committed by GitHub
parent 1f14b7cb1b
commit ead44a27ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 540 additions and 88 deletions

View file

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