![]() |
Wait for specific cedrus key
My cedrus handler triggers an event viz.sendEvent(CEDRUS_BUTTON_DOWN, response['key']) every time a cedrus button is pressed.
How can I pause my Experiment until a specific cedrus key is pressed (e.g. button 6 is down)? |
You can use viztask and the waitEvent command to wait for the cedrus button event.
|
But in this case every cedrus button resumes my experiment.
How can I wait for a specific button? (e.g. button 6) |
Are you using the vizxid module to get the Cedrus data, like the example posted here? If so, you can wait for a specific button press:
Code:
#Wait for button 3 on XID to be pressed |
I'm using pyxid. But I'll have a closer look at the implementation of waitButtonDown.
|
All times are GMT -7. The time now is 01:16 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC