Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/GHOST_Types.h
| Show First 20 Lines • Show All 713 Lines • ▼ Show 20 Lines | |||||
| typedef struct GHOST_XrActionInfo { | typedef struct GHOST_XrActionInfo { | ||||
| const char *name; | const char *name; | ||||
| GHOST_XrActionType type; | GHOST_XrActionType type; | ||||
| uint32_t count_subaction_paths; | uint32_t count_subaction_paths; | ||||
| const char **subaction_paths; | const char **subaction_paths; | ||||
| /** States for each subaction path. */ | /** States for each subaction path. */ | ||||
| void *states; | void *states; | ||||
| /** Input thresholds/regions for each subaction path. */ | |||||
| float *float_thresholds; | |||||
| int16_t *axis_flags; | |||||
| GHOST_XrCustomdataFreeFn customdata_free_fn; | GHOST_XrCustomdataFreeFn customdata_free_fn; | ||||
| void *customdata; /* wmXrAction */ | void *customdata; /* wmXrAction */ | ||||
| } GHOST_XrActionInfo; | } GHOST_XrActionInfo; | ||||
| typedef struct GHOST_XrActionSpaceInfo { | |||||
| const char *action_name; | |||||
| uint32_t count_subaction_paths; | |||||
| const char **subaction_paths; | |||||
| /** Poses for each subaction path. */ | |||||
| const GHOST_XrPose *poses; | |||||
| } GHOST_XrActionSpaceInfo; | |||||
| typedef struct GHOST_XrActionBindingInfo { | typedef struct GHOST_XrActionBindingInfo { | ||||
| const char *action_name; | const char *component_path; | ||||
| uint32_t count_interaction_paths; | float float_threshold; | ||||
| /** Interaction path: User (sub-action) path + component path. */ | int16_t axis_flag; | ||||
| const char **interaction_paths; | GHOST_XrPose pose; | ||||
| } GHOST_XrActionBindingInfo; | } GHOST_XrActionBindingInfo; | ||||
| typedef struct GHOST_XrActionProfileInfo { | typedef struct GHOST_XrActionProfileInfo { | ||||
| const char *action_name; | |||||
| const char *profile_path; | const char *profile_path; | ||||
| uint32_t count_bindings; | uint32_t count_subaction_paths; | ||||
| const char **subaction_paths; | |||||
| /* Bindings for each subaction path. */ | |||||
| const GHOST_XrActionBindingInfo *bindings; | const GHOST_XrActionBindingInfo *bindings; | ||||
| } GHOST_XrActionProfileInfo; | } GHOST_XrActionProfileInfo; | ||||
| #endif /* WITH_XR_OPENXR */ | #endif /* WITH_XR_OPENXR */ | ||||