Simplify input related operations such as gesture detection, input mapping and clicking/dragging game objects
FIX: Don't try to drag an object more than once in a single pressed/released cycle if the drag was cancelled by the user
NEW: Added option to lock drag operations to a single axis.
BREAKING CHANGE: Removed all.iniput_bindings. The same file exists in the Defold builtins now. BREAKING CHANGE: Removed the gamepads file. The one in Defold builtins contains many more gamepads than the one included in this project.
NEW: The cursor will generate cursor.CLICKED when clicking outside of a game object (id and group are nil)
NEW: Cursor will generate cursor.DRAG while dragging. The event has a dx
and dy
with delta values from the initial drag position.
NEW: Cursor will generate cursor.DRAG_START and cursor.DRAG_END when dragging outside of a game object (id and group are nil)
NEW: Analog directional events are generated while above the threshold
NEW: Analog input can generate directional (cardinal) events when stick is moved beyond a specified threshold
FIX: Tweaked analog stick messages
FIX: Clear analog control position after notifying listener of release event
NEW: Added reusable onscreen.gui_script to manage on screen controls
FIX: Issue with missing cursor out event when drag is disabled