-
Notifications
You must be signed in to change notification settings - Fork 902
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: start on emulating pyglet mouse events
Uses: testing PsychoPy mouse code & experiments, maybe use in actual experiments Current description: - fully backwards compatible - want an emulation mode that sets mouse RT as a side effect - very fast (< 10^-5s), effectively as fast as before; profiling revealed a 250ms delay for the first mention of pyglet.window.mouse.LEFT MIDDLE RIGHT - move import pyglet.window.mouse.LEFT etc earlier to avoid 250ms first-mention delay; don't want that to happen during an experiment trial - RF to allow for multiple buttons at once via a single integer code Still to-do: - add a proper API in psychopy.hardware.emulator? - emulation of click coordinates x, y; they can be given here but no effect (merely logged)
- Loading branch information
1 parent
df68d43
commit f78a9b3
Showing
2 changed files
with
52 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters