vrJoystick

   object --+        
            |        
  ??.instance --+    
                |    
vrAEBase.vrAEBase --+
                    |
                   vrJoystick

Joystick device handler.

Example:

       See also example joystick.py

Instance Methods
__init__(id)

The constructor of the vrJoystick class.
list of floats getAxes()

Returns the axis array.
int getButtons()

Returns the button mask.

Inherited from vrAEBase.vrAEBase: __reduce__, addLoop, callAllConnected, connect, connectSignal, emitSignal, getModuleName, isActive, loop, recEvent, removeConnections, setActive, setUpdateGUIEnabled, subLoop

Inherited from unreachable.instance: __new__

Class Variables
  __instance_size__ = 152


Method Details

__init__(id)

(Constructor)

The constructor of the vrJoystick class.

Parameters:
  • id (int) - The device ID (Optional).
Overrides: vrAEBase.vrAEBase.__init__

getAxes()

Returns the axis array.

Returns: list of floats
The axis array.

getButtons()

Returns the button mask.

Returns: int
The button mask.