QB64 Phoenix Edition
detecting multitouch touchscreen input (screen taps, buttons, slider bars) ? - Printable Version

+- QB64 Phoenix Edition (https://qb64phoenix.com/forum)
+-- Forum: Chatting and Socializing (https://qb64phoenix.com/forum/forumdisplay.php?fid=11)
+--- Forum: General Discussion (https://qb64phoenix.com/forum/forumdisplay.php?fid=2)
+--- Thread: detecting multitouch touchscreen input (screen taps, buttons, slider bars) ? (/showthread.php?tid=2137)



detecting multitouch touchscreen input (screen taps, buttons, slider bars) ? - madscijr - 11-02-2023

I don't expect this is currently possible, but figured it can't hurt to ask... 
Is this supported in QB64PE or doable via some API hack? 

I'm thinking of applications like 

- input for multiplayer games, e.g. a pong game where each player has a zone of the screen such as top/bottom/left/right edges or top left/top right/bottom left/bottom right quadrants. If we detect a screen press in a given quadrant we use that to reposition the associated player.

- input for musical instruments, e.g. a simple synth with an onscreen keyboard, but also slider controls to bend notes, change various sound parameters, buttons to change waveform, etc., all in realtime and simultaneously. (And later when QB64PE gets multi-channel audio, polyphony.)

I've never done any kind of programming for multitouch input, but multitouch screens are common enough nowadays that I would think there is pretty standard OS level support for them?


RE: detecting multitouch touchscreen input (screen taps, buttons, slider bars) ? - SpriggsySpriggs - 11-03-2023

Getting Started with Windows Touch Messages
Detecting and Tracking Multiple Touch Points


You'll be needing to use callbacks and function pointers in order to achieve this but I'm sure it will work.