RazerHydraFrame¶
- Inherit:
- SimObject
Description¶
UNDOCUMENTED!
Methods¶
-
bool
RazerHydraFrame::
getControllerButton1
(int index)¶ Get the button 1 state for the requested controller.
Parameters: index – The controller index to check. Returns: Button 1 state requested controller as true or false.
-
bool
RazerHydraFrame::
getControllerButton2
(int index)¶ Get the button 2 state for the requested controller.
Parameters: index – The controller index to check. Returns: Button 2 state requested controller as true or false.
-
bool
RazerHydraFrame::
getControllerButton3
(int index)¶ Get the button 3 state for the requested controller.
Parameters: index – The controller index to check. Returns: Button 3 state requested controller as true or false.
-
bool
RazerHydraFrame::
getControllerButton4
(int index)¶ Get the button 4 state for the requested controller.
Parameters: index – The controller index to check. Returns: Button 4 state requested controller as true or false.
-
int
RazerHydraFrame::
getControllerCount
()¶ Get the number of controllers defined in this frame.
Returns: The number of defined controllers.
-
bool
RazerHydraFrame::
getControllerDocked
(int index)¶ Get the docked state of the controller.
Parameters: index – The controller index to check. Returns: True if the requested controller is docked.
-
bool
RazerHydraFrame::
getControllerEnabled
(int index)¶ Get the enabled state of the controller.
Parameters: index – The controller index to check. Returns: True if the requested controller is enabled.
-
Point3I
RazerHydraFrame::
getControllerPos
(int index)¶ Get the position of the requested controller. The position is the controller’s integer position converted to Torque 3D coordinates (in millimeters).
Parameters: index – The controller index to check. Returns: Integer position of the requested controller (in millimeters).
-
Point3F
RazerHydraFrame::
getControllerRawPos
(int index)¶ Get the raw position of the requested controller. The raw position is the controller’s floating point position converted to Torque 3D coordinates (in millimeters).
Parameters: index – The controller index to check. Returns: Raw position of the requested controller (in millimeters).
-
TransformF
RazerHydraFrame::
getControllerRawTransform
(int index)¶ Get the raw transform of the requested controller.
Parameters: index – The controller index to check. Returns: The raw position and rotation of the requested controller (in Torque 3D coordinates).
-
AngAxisF
RazerHydraFrame::
getControllerRot
(int index)¶ Get the rotation of the requested controller. The Razer Hydra controller rotation as converted into the Torque 3Dcoordinate system.
Parameters: index – The controller index to check. Returns: Rotation of the requested controller.
-
Point2F
RazerHydraFrame::
getControllerRotAxis
(int index)¶ Get the axis rotation of the requested controller. This is the axis rotation of the controller as if the controller were a gamepad thumb stick. Imagine a stick coming out the top of the controller and tilting the controller front, back, left and right controls that stick. The values returned along the x and y stick axis are normalized from -1.0 to 1.0 with the maximum controller tilt angle for these values as defined by $RazerHydra::MaximumAxisAngle .
Parameters: index – The controller index to check. Returns: Axis rotation of the requested controller.
-
int
RazerHydraFrame::
getControllerSequenceNum
(int index)¶ Get the controller sequence number.
Parameters: index – The controller index to check. Returns: The sequence number of the requested controller.
-
bool
RazerHydraFrame::
getControllerShoulderButton
(int index)¶ Get the shoulder button state for the requested controller.
Parameters: index – The controller index to check. Returns: Shoulder button state requested controller as true or false.
-
bool
RazerHydraFrame::
getControllerStartButton
(int index)¶ Get the start button state for the requested controller.
Parameters: index – The controller index to check. Returns: Start button state requested controller as true or false.
-
bool
RazerHydraFrame::
getControllerThumbButton
(int index)¶ Get the thumb button state for the requested controller.
Parameters: index – The controller index to check. Returns: Thumb button state requested controller as true or false.
-
Point2F
RazerHydraFrame::
getControllerThumbStick
(int index)¶ Get the thumb stick values of the requested controller. The thumb stick values are in the range of -1.0..1.0
Parameters: index – The controller index to check. Returns: Thumb stick values of the requested controller.
-
TransformF
RazerHydraFrame::
getControllerTransform
(int index)¶ Get the transform of the requested controller.
Parameters: index – The controller index to check. Returns: The position and rotation of the requested controller (in Torque 3D coordinates).
-
float
RazerHydraFrame::
getControllerTrigger
(int index)¶ Get the trigger value for the requested controller. The trigger value is in the range of -1.0..1.0
Parameters: index – The controller index to check. Returns: value of the requested controller.
-
int
RazerHydraFrame::
getFrameInternalId
()¶ Provides the internal ID for this frame.
Returns: Internal ID of this frame.
-
int
RazerHydraFrame::
getFrameRealTime
()¶ Get the real time that this frame was generated.
Returns: Real time of this frame in milliseconds.
-
int
RazerHydraFrame::
getFrameSimTime
()¶ Get the sim time that this frame was generated.
Returns: Sim time of this frame in milliseconds.
-
bool
RazerHydraFrame::
isFrameValid
()¶ Checks if this frame is valid.
Returns: True if the frame is valid.