touchscreen events
Hi,
I am setting up a task in OpenSesame with a touchscreen monitor and Windows 10. mouse.get_click() correctly registers a left-button-down event as button 1, but for the touchscreen it requires a double-tap (Psychopy backend) or a touch-off event (Pygame and Expyriment backends) to register button 1. I understand that in Windows, touch duration is often used to discriminate left and right buttons and events are therefore logged on touch-off, so I have disabled the Press-and-hold as right-click in the Windows control panel. (Windows recognises both touch-on and touch-off events identically to the left mouse button).
Can anyone advise how I can register touch-on events in OpenSesame? I saw an earlier post on this issue in the forum, but it was not clear whether the issue had been resolved.
many thanks, Ken
Comments
Hi @kenmc ,
It seems that PyGame now supports touch events. So that means that you could write a script that uses PyGame directly. However, this appears to require a version of PyGame that is compiled with SDL 2, and that is currently not the case with any of the regular OpenSesame packages. (I think.)
You can check for yourself by entering the following in the console (debug window):
For me that gives
-1, because this constant hasn't been defined. Long story short: This might be possible, but it will require a bit of figuring out!Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!