richardanaya / conifer

Apache License 2.0
37 stars 4 forks source link

Support for basic gestures. #6

Closed nbrr closed 4 years ago

nbrr commented 4 years ago

This implements the notion of swipe, i.e. a vec of points generated by a continuous touch. From swipes we deduce tap and drag movements.

nbrr commented 4 years ago

Note that for now, "exit area" I configured in the examples is somewhat specific to my configuration. Maybe we could write something like "any contact within 50px of a border" or something, but for now I was a bit troubled by the f32 of Config.(min/max)input(width/height) and I didn't bother with conversions/move/etc.

richardanaya commented 4 years ago

Looks great, we can figure that all out :)