Module vrVrpnTracking :: Class vrTrackerButton
[frames] | no frames]

Class vrTrackerButton

   object --+            
            |            
  ??.instance --+        
                |        
vrAEBase.vrAEBase --+    
                    |    
      vrTrackerSensor --+
                        |
                       vrTrackerButton

The vrTrackerButton class is a proxy class to access a tracking button as defined in the Tracking GUI module. In order to create a vrTrackerButton object for an existing button, you only have to pass its name as the only parameter to its constructor. The name is simply a user definable string and set in the tracking GUI in VRED.

Instance Methods
 
__init__(name)
The constructor of the vrTrackerButton class.
bool
isPressed()
Returns true if button is pressed.
 
pressed()
SIGNAL is called when the button is pressed.
 
released()
SIGNAL is called when the button is released.

Inherited from vrTrackerSensor: getName, getType, setEnabled, setSensorId

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__ = 200
Method Details

__init__(name)
(Constructor)

 

The constructor of the vrTrackerButton class.

Parameters:
  • name (string) - The name of the button.
Overrides: vrAEBase.vrAEBase.__init__

isPressed()

 

Returns true if button is pressed.

Returns: bool
True if the button is pressed, false otherwise.