PDA

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


Vishav
08-07-2018, 01: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?

Jeff
08-08-2018, 12: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.