View Full Version : How to apply if condition on waiting key button press

08-07-2018, 02:41 AM
I want my system to wait for alphabet key to press and this key will be 'r' for right response; 'w' for wrong response and 'n' for not responded. How I can apply if else on wait key in vizard?

08-08-2018, 01:40 AM
Take a look at the examples on the viztask.waitKeyDown (http://docs.worldviz.com/vizard/#commands/viztask/waitKeyDown.htm) page. Example 2 shows how to pass in a list of keys to wait for. Example 3 shows how to determine which key was pressed.