WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   How to apply if condition on waiting key button press (https://forum.worldviz.com/showthread.php?t=6173)

Vishav 08-07-2018 01:41 AM

How to apply if condition on waiting key button press
 
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 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.


All times are GMT -7. The time now is 12:06 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC