#1
|
|||
|
|||
Joystick update rate?
Hi!
I found this in the vizjoy.py file: Quote:
Is it possible to get this to be updated every ms or every tick? We need precise reaction time measurement like in the "tutorial_reactionTime.py" example but with custom joystick buttons. I tried "yield viztask.waitEvent(vizjoy.BUTTONDOWN_EVENT, data)" but the data object does not seem to be updated. So I don't know how to get the time, the event occured. |
#2
|
|||
|
|||
If you look in the __update function of the joystick class, you'll see that it simply polls the state of the buttons. You could create a thread that polls the joystick button state at a higher rate. However, I'm not sure this method will provide enough accuracy for your experiment.
I've heard of some software that allows you to map a joystick button to a keyboard press. I don't know exactly how they work, so they might end up adding even more latency. Vizard supports Cedrus response pads, which are made for reaction timing experiments. You might want to look into this. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to get the data from Logitech G25 racing wheel ? | fuyonggang | Vizard | 4 | 12-18-2008 07:14 PM |
writing joystick position to a data file | Saz | Vizard | 3 | 12-17-2008 06:18 AM |
Linking problems with Live Character | Frank Verberne | Vizard | 5 | 06-04-2008 12:42 PM |
Joystick Navigation | Vinicius Lima | Vizard | 7 | 10-23-2007 11:42 AM |
Facetracking and Immersion Joystick | Vygreif | Vizard | 1 | 01-25-2006 11:56 AM |