mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 08:05:18 +02:00
Touchscreen: Allow mods to swap the meaning of short and long taps (punch with single tap) (#14087)
This works through a new field "touch_interaction" in item definitions. The two most important use cases are: - Punching players/entities with short tap instead of long tap (enabled by default) - Making items usable that require holding the place button (e.g. bows and shields in MC-like games)
This commit is contained in:
@@ -9,8 +9,8 @@ due to limited capabilities of common devices. What can be done is described bel
|
||||
While you're playing the game normally (that is, no menu or inventory is
|
||||
shown), the following controls are available:
|
||||
* Look around: touch screen and slide finger
|
||||
* Tap: Place a node
|
||||
* Long tap: Dig node or use the held item
|
||||
* Tap: Place a node, punch an object or use the selected item (default)
|
||||
* Long tap: Dig a node or use the selected item (default)
|
||||
* Press back: Pause menu
|
||||
* Touch buttons: Press button
|
||||
* Buttons:
|
||||
|
Reference in New Issue
Block a user