britzl / defold-input

Simplify input related operations such as gesture detection, input mapping and clicking/dragging game objects
MIT License
111 stars 26 forks source link

Combine the cursor module and the gesture module #7

Closed DonsWayo closed 1 year ago

DonsWayo commented 5 years ago

Please, can you provide an example combine this two modules? Thanks.

britzl commented 5 years ago

Added an example of how to combine cursor and gesture modules:

CODE: https://github.com/britzl/defold-input/tree/master/examples/cursor_and_gesture HTML5: https://britzl.github.io/Defold-Input/

DonsWayo commented 5 years ago

thanks for the demo, works perfect!, only one question. I try to modify the gesture.lua to get the value of long press and swipe direction without the release (on pressed get directly the value), is this posible?

Thanks for the effort.

britzl commented 5 years ago

I've added drag detection in this branch: https://github.com/britzl/defold-input/tree/drag_gesture