XrEventData(bpy_struct)

base class — bpy_struct

class bpy.types.XrEventData(bpy_struct)

XR Data for Window Manager Event

action

XR action name

Type

string, default “”, (readonly, never None)

action_set

XR action set name

Type

string, default “”, (readonly, never None)

bimanual

Whether bimanual interaction is occurring

Type

boolean, default False, (readonly)

controller_location

Location of the action’s corresponding controller aim in world space

Type

float array of 3 items in [-inf, inf], default (0.0, 0.0, 0.0), (readonly)

controller_location_other

Controller aim location of the other user path for bimanual actions

Type

float array of 3 items in [-inf, inf], default (0.0, 0.0, 0.0), (readonly)

controller_rotation

Rotation of the action’s corresponding controller aim in world space

Type

float array of 4 items in [-inf, inf], default (0.0, 0.0, 0.0, 0.0), (readonly)

controller_rotation_other

Controller aim rotation of the other user path for bimanual actions

Type

float array of 4 items in [-inf, inf], default (0.0, 0.0, 0.0, 0.0), (readonly)

float_threshold

Input threshold for float/2D vector actions

Type

float in [-inf, inf], default 0.0, (readonly)

state

XR action values corresponding to type

Type

float array of 2 items in [-inf, inf], default (0.0, 0.0), (readonly)

state_other

State of the other user path for bimanual actions

Type

float array of 2 items in [-inf, inf], default (0.0, 0.0), (readonly)

type

XR action type

  • FLOAT Float – Float action, representing either a digital or analog button.

  • VECTOR2D Vector2D – 2D float vector action, representing a thumbstick or trackpad.

  • POSE Pose – 3D pose action, representing a controller’s location and rotation.

  • VIBRATION Vibration – Haptic vibration output action, to be applied with a duration, frequency, and amplitude.

Type

enum in [‘FLOAT’, ‘VECTOR2D’, ‘POSE’, ‘VIBRATION’], default ‘FLOAT’, (readonly)

classmethod bl_rna_get_subclass(id, default=None)
Parameters

id (string) – The RNA type identifier.

Returns

The RNA type or default when not found.

Return type

bpy.types.Struct subclass

classmethod bl_rna_get_subclass_py(id, default=None)
Parameters

id (string) – The RNA type identifier.

Returns

The class or default when not found.

Return type

type

Inherited Properties

Inherited Functions

References