mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
Add crosshair support for Android (#7865)
If enabled, a crosshair will be shown to select object. This will give Android players a way to play like they play on desktop. On third-person back camera mode, player is forced to use crosshair. On third-person front camera mode, player is unable to select anything. Co-authored-by: ROllerozxa <temporaryemail4meh+github@gmail.com> Co-authored-by: rubenwardy <rw@rubenwardy.com>
This commit is contained in:
committed by
GitHub
parent
b1233056b7
commit
3978b9b8ed
@@ -308,10 +308,6 @@ local function handle_settings_buttons(this, fields, tabname, tabdata)
|
||||
core.show_keys_menu()
|
||||
return true
|
||||
end
|
||||
if fields["cb_touchscreen_target"] then
|
||||
core.settings:set("touchtarget", fields["cb_touchscreen_target"])
|
||||
return true
|
||||
end
|
||||
|
||||
--Note dropdowns have to be handled LAST!
|
||||
local ddhandled = false
|
||||
|
Reference in New Issue
Block a user