RazerHydraUtil

Engine/source/platform/input/razerHydra/razerHydraUtil.cpp

More...

Public Enumerations

enum
Components {
  X = 0
  Y = 1
  Z = 2
}

Public Functions

calculateAxisRotation(const MatrixF & inRotation, const F32 & maxAxisRadius, Point2F & outRotation)

Calcualte a controller's rotation as if it were a thumb stick axis.

convertPosition(const F32 inPosition, F32 & x, F32 & y, F32 & z)

Convert from a Razer Hydra controller position to a Torque 3D position.

convertPosition(const F32 inPosition, Point3F & outPosition)

Convert from a Razer Hydra controller position to a Torque 3D Point3F.

convertRotation(const F32 inRotMat, MatrixF & outRotation)

Convert a Razer Hydra controller's rotation to a Torque 3D matrix.

Detailed Description

Public Enumerations

Components

Enumerator

X = 0
Y = 1
Z = 2

Public Functions

calculateAxisRotation(const MatrixF & inRotation, const F32 & maxAxisRadius, Point2F & outRotation)

Calcualte a controller's rotation as if it were a thumb stick axis.

convertPosition(const F32 inPosition, F32 & x, F32 & y, F32 & z)

Convert from a Razer Hydra controller position to a Torque 3D position.

convertPosition(const F32 inPosition, Point3F & outPosition)

Convert from a Razer Hydra controller position to a Torque 3D Point3F.

convertRotation(const F32 inRotMat, MatrixF & outRotation)

Convert a Razer Hydra controller's rotation to a Torque 3D matrix.