psychojs icon indicating copy to clipboard operation
psychojs copied to clipboard

Multitouch support

Open lightest opened this issue 2 years ago • 2 comments

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.

lightest avatar May 17 '22 19:05 lightest