Input Events
PsychExpAPIs.getKey
— MethodgetKey(win::Window)
Waits until a key is pressed.
Inputs:
- win::Window
Outputs: returns the character that was pressed
Limitations: currently only returns character keys. Arrow keys, tab, return, etc. do not work.
PsychExpAPIs.waitKeys
— MethodwaitKeys(win::Window, waitTime::Float64)
Waits for a predetermined time for a keypress. Returns immediately when a key is pressed or the timer runs out.
Inputs:
- win::Window
- waitTime::Float64 default is milliseconds
Outputs: returns the character that was pressed
Limitations: currently only returns character keys. Arrow keys, tab, return, etc. do not work.