arypbatista / godot-swipe-detector

Detect gestures and swipes in your game
MIT License
124 stars 15 forks source link

WIP: add get_direction function to SwipeGesture Object #7

Closed ppfeiler closed 7 years ago

ppfeiler commented 7 years ago

This is the PR to my issue #6

zwenza commented 7 years ago

checked out @ppfeiler PR, works great!

arypbatista commented 7 years ago

Nice @ppfeiler !

I invite you to join the issue to discuss this! I think your actual implementation is ok, I would just encourage you to set some constants for the return values in order to stablish an API that will survive the change of these values (maybe in a future we want to change string values or we want to use integers).