vizjoy.py Twist method
Going over some old code and I had a question.
Years ago, I modified vizjoy.py for the twist method. The original method is: Code:
def getTwist(self): Code:
def getTwist(self): That is, I wouldn't be able to do the following with only one element being passed from getTwist Code:
def twist(self, val): |
If you want all rotation values, then simply call joy.getRotation() instead of joy.getTwist(). As shown in the code you posted, getTwist is simply a convenience method to get the Z-rotation value of the joystick. There is no need to modify vizjoy.
|
All times are GMT -7. The time now is 02:54 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC