Simple Joystick Question
Hi all,
I have a question concerning the joystick buttons which is probably rather easy to be answered: How can I make my script to wait for the user to press one of the two buttons of a connected joystick. My guess was: Code:
import viz |
The viztask.waitButtonDown command waits for a GUI button object to be pressed. To wait for a joystick button press in your task function you can create a custom condition. The task function in the following example waits for either buttons 1 or 2 to be pressed before it continues:
Code:
import viz |
Hi Jeff,
thanks for the clarification on the viztask.waitButtonDown command and also for your code which works fine for me! :) |
All times are GMT -7. The time now is 07:22 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC