This small extension adds 5 functions to deal with multiple touch inputs.
- touch_has_new() Returns 1 if there have been new touch input events (because the finger has moved or is held down) since the last call to this function.
- touch_get_count() Returns the amount of touch input changes registered in the last update.
- touch_get_x(index) index should be between 0 and touch_get_count()-1.
- touch_get_id(index) Can be used to identify and track touch points. Actual range of values device specific.
I only tested it with a device that supports two touchpoints (x220t) but it should support any amount.
Other than the mouse input to which touch input is mapped, this recognises a single touch point also before moving the finger.
I'd also have liked to add the builtin Windows gesture recognition, but I couldn't get it to send WM_GESTURE to my window consistently. And adding digitizer/stylus pressure sensitivity appears to be non-trivial as well (need to use driver specific apis?).
Btw. this ("Multitouch Extension") appears to do the same for GMHTML5. I guess these could be combined to an extension for GM:Studio (?).
I hope you like it!
Edited by Master Xilo, 23 August 2015 - 02:09 PM.