public class SoControllerReader extends Inventor
SoControllerReader
is a class that interfaces to trackdAPI. It provides access functions to the states of buttons and valuators of VR input devices, e.g., the buttons and joystick of a wand. SoTrackerReader
is instantiated by the SbConfig class, if the configuration file specifies the use of a tracking system (by providing shared memory keys). See SbConfig.getControllerReader.
NOTE: trackd from VRCO (www.vrco.com) is not included with Open Inventor. If trackd exists on the system, Open Inventor will dynamically load it at run time. See trackd documentation for information about the values returned.
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoControllerReader(int name_10509)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
buttonChange(int id)
Returns information about changes of the state of the button identified by id.
|
int |
getButton(int id)
Returns the value of button identified by id from the tracker daemon.
|
int |
getNumberOfButtons()
Returns the number of buttons the tracker daemon is storing.
|
int |
getNumberOfValuators()
Returns the number of valuators the tracker daemon is storing.
|
float |
getValuator(int id)
Returns value of the valuator identified by id from the tracker daemon.
|
boolean |
isInitSuccess()
Returns true if Inventor was able to retrieve all the trackdAPI functions.
|
boolean |
isLoadSuccess()
Returns true if libtrackd.so was loaded successfully.
|
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public SoControllerReader(int name_10509)
public boolean isInitSuccess()
public int getButton(int id)
public int buttonChange(int id)
public float getValuator(int id)
public int getNumberOfButtons()
public int getNumberOfValuators()
public boolean isLoadSuccess()
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com