mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Re-add "long tap to punch" as a client-side setting
This commit is contained in:
parent
e8a8525bcd
commit
517f1602aa
8 changed files with 54 additions and 19 deletions
|
@ -1105,11 +1105,11 @@ void TouchScreenGUI::applyContextControls(const TouchInteractionMode &mode)
|
|||
// Since the pointed thing has already been determined when this function
|
||||
// is called, we cannot use this function to update the shootline.
|
||||
|
||||
sanity_check(mode != TouchInteractionMode_USER);
|
||||
u64 now = porting::getTimeMs();
|
||||
bool target_dig_pressed = false;
|
||||
bool target_place_pressed = false;
|
||||
|
||||
u64 now = porting::getTimeMs();
|
||||
|
||||
// If the meanings of short and long taps have been swapped, abort any ongoing
|
||||
// short taps because they would do something else than the player expected.
|
||||
// Long taps don't need this, they're adjusted to the swapped meanings instead.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue