Common types
Data structures#
TsQuat#
Quaternion float struct.
Represent an object rotation in 3D space.
Fields
w float
x float
y float
z float
TsSensor#
Sensor description struct.
Unique sensor description. Contains an id of sensors layout layout_id, an id of a bone bone_id and a node where the sensor is attached node_id, an id of a sensor sensor_id.
Fields
layout_id Byte
bone_id Byte
node_id Byte
sensor_id Byte
TsTransform#
Transform struct.
Represent an object transform in 3D space, containing position and rotation.
Fields
position TsVec3f
rotation TsQuat
TsVec2f#
Vector 2D float struct.
Represent a point in 2d space.
Fields
x float
y float
TsVec3f#
Vector 3D float struct.
Represent a point in 3d space.
Fields
x float
y float
z float
TsVersion#
Version struct.
Contains major, minor, patch, and build versions. If the major version changes, there can be incompatible changes.
Fields
major UInt32
incompatible changes
minor UInt32
compatible changes
patch UInt32
patch changes
build UInt32
build id
Enumerations#
TsDeviceSide#
Device side.
Device side for devices which can have it, otherwise Undefined.
Members
Undefined 0
Right 1
Left 2
TsProductType#
Type of availvable devices.
Members
Undefined 0
Suit 1
Glove 2
TsStatusCode#
Result value for most of API functions.
Members
Good 0
GoodNotInitialized
GoodAlreadyInitialized
GoodAlreadyExists
GoodNothingTodo
Bad 0x80000000U
InvalidArgument
BadPointer
BadAlreadyExists
OutOfMemory
NotInitialized
BadCommand
NotImplemented
NotFound
NotValid
NotSupported
BadState
BadSize
IpcFail
SessionLimitExceeded
ParseFail
FileOpenFailed
FileFlushFailed
FileWriteFailed
AccessDenied
ServiceStartFailed
NoDevice
Unexpected
