メインコンテンツまでスキップ

Shared Types

This module contains the constants and structs related to shared types.

Constants

The following are the constants that the Interhaptics extension defines. All of them are defined as an enum.

Structs

The Interhaptics extension also defines a Struct:

Articles

INTERHAPTICS_OPERATOR

Interhaptics Constant INTERHAPTICS_OPERATOR

This enum represents operators used in the haptic body mapping. The possible values are:

MemberDescription
MINUSRepresents a minus operator (-1)
NEUTRALRepresents a neutral operator (0)
PLUSRepresents a plus operator (1)

INTERHAPTICS_LATERAL_FLAG

Interhaptics Constant INTERHAPTICS_LATERAL_FLAG

This enum represents the lateral position of a body part. The possible values are:

MemberDescription
UnknownPositionRepresents an unknown position. (-1)
GLOBALRepresents the global position. (0)
RIGHTRepresents the right position. (1)
LEFTRepresents the left position. (2)
CENTERRepresents the center position. (3)

INTERHAPTICS_GROUP_ID

Interhaptics Constant INTERHAPTICS_GROUP_ID

The GroupID enum represents the group IDs for different body parts. Each group has a unique ID assigned to it for grouping purposes. The following are some of the groups and their corresponding IDs:

MemberDescription
UNKNOWNRepresents an unknown group. ID -1
ALLRepresents all body parts. ID 0
TOPRepresents the top portion of the body. ID 100
DOWNRepresents the lower portion of the body. ID 101
ARMRepresents the arm group. ID 200
HEADRepresents the head group. ID 201
CHESTRepresents the chest group. ID 202
WAISTRepresents the waist group. ID 203
LEGRepresents the leg group. ID 204
UPPER_ARMRepresents the upper arm group. ID 300
LOWER_ARMRepresents the lower arm group. ID 301
HANDRepresents the hand group. ID 302
SKULLRepresents the skull group. ID 303
NECKRepresents the neck group. ID 304
UPPER_LEGRepresents the upper leg group. ID 305
LOWER_LEGRepresents the lower leg group. ID 306
FOOTRepresents the foot group. ID 307
PALMRepresents the palm group. ID 400
FINGERRepresents the finger group. ID 401
SOLERepresents the sole group. ID 402
TOERepresents the toe group. ID 403
THUMBRepresents the thumb group. ID 500
INDEXRepresents the index finger group. ID 501
MIDDLERepresents the middle finger group. ID 502
RINGRepresents the ring finger group. ID 503
PINKYRepresents the pinky finger group. ID 504
HALLUXRepresents the hallux group. ID 505
INDEX_TOERepresents the index toe group. ID 506
MIDDLE_TOERepresents the middle toe group. ID 507
RING_TOERepresents the ring toe group. ID 508
PINKY_TOERepresents the pinky toe group. ID 509
FIRSTRepresents the first segment group. ID 600
SECONDRepresents the second segment group. ID 601
THIRDRepresents the third segment group. ID 602

Interhaptics_CommandData

Interhaptics Constant Interhaptics_CommandData

This structure represents an instruction that is useful for finding the body part to render. It contains the following members:

This struct is referenced by the following functions:

MemberTypeDescription
SignAny{constant.INTERHAPTICS_OPERATOR} Represents the sign of the operation (+/-) of type Operator.
GroupAny{constant.INTERHAPTICS_GROUP_ID} Represents the group targeted of type INTERHAPTICS_GROUP_ID.
SideAny{constant.INTERHAPTICS_LATERAL_FLAG} Represents the side targeted of type INTERHAPTICS_LATERAL_FLAG.