psychojs
psychojs copied to clipboard
Multitouch support
Multitouch support on a system level.
Introduces a new boolean
attribute to the VisualStim
called draggable
, setting which automatically subscribes and unsubscribes to the pointer events depending on passed value. Thus all the classes derived from VisualStim
acquire such capability.
Since VisualStim
is actually based off of EventEmitter
it now also emits pointer events that it listens to, allowing for further programming externally if desired. In this case any visual stimuli will notify when pointer is being pressed on it, moved or lifted away.
Task linked: CU-29xj5ca Multitouch responses online