PDA

View Full Version : onkeydown for Cedrus Response Pad


VizMars
06-14-2017, 02:38 AM
How can I implement a "onkeydown" function for the vizxid module?

Jeff
06-19-2017, 09:20 AM
The vizxid module defines the following events:


BUTTONDOWN_EVENT = viz.getEventID('XID_ButtonDown')
BUTTONUP_EVENT = viz.getEventID('XID_ButtonUp')

You could use the vizact.onevent (http://docs.worldviz.com/vizard/#commands/vizact/onevent.htm) command and pass in one of those events.