Blender  V3.3
Functions | Variables
#include "BLI_math.h"
#include "DNA_space_types.h"
#include "DNA_view3d_types.h"
#include "DNA_windowmanager_types.h"
#include "DNA_xr_types.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "WM_types.h"
#include "rna_internal.h"

Go to the source code of this file.

Functions

void RNA_def_xr (BlenderRNA *brna)
 
XR Action Map
static void rna_def_xr_component_paths (BlenderRNA *brna, PropertyRNA *cprop)
 
static void rna_def_xr_actionmap_bindings (BlenderRNA *brna, PropertyRNA *cprop)
 
static void rna_def_xr_user_paths (BlenderRNA *brna, PropertyRNA *cprop)
 
static void rna_def_xr_actionmap_items (BlenderRNA *brna, PropertyRNA *cprop)
 
static void rna_def_xr_actionmaps (BlenderRNA *brna, PropertyRNA *cprop)
 
static void rna_def_xr_actionmap (BlenderRNA *brna)
 
XR Session Settings
static void rna_def_xr_session_settings (BlenderRNA *brna)
 
XR Session State
static void rna_def_xr_session_state (BlenderRNA *brna)
 
XR Event Data
static void rna_def_xr_eventdata (BlenderRNA *brna)
 

Variables

static const EnumPropertyItem rna_enum_xr_action_types []
 
static const EnumPropertyItem rna_enum_xr_op_flags []
 
static const EnumPropertyItem rna_enum_xr_haptic_flags []
 
static const EnumPropertyItem rna_enum_xr_axis0_flags []
 
static const EnumPropertyItem rna_enum_xr_axis1_flags []
 

Function Documentation

◆ RNA_def_xr()

void RNA_def_xr ( BlenderRNA brna)

◆ rna_def_xr_actionmap()

static void rna_def_xr_actionmap ( BlenderRNA brna)
static

◆ rna_def_xr_actionmap_bindings()

static void rna_def_xr_actionmap_bindings ( BlenderRNA brna,
PropertyRNA cprop 
)
static

◆ rna_def_xr_actionmap_items()

static void rna_def_xr_actionmap_items ( BlenderRNA brna,
PropertyRNA cprop 
)
static

◆ rna_def_xr_actionmaps()

static void rna_def_xr_actionmaps ( BlenderRNA brna,
PropertyRNA cprop 
)
static

◆ rna_def_xr_component_paths()

static void rna_def_xr_component_paths ( BlenderRNA brna,
PropertyRNA cprop 
)
static

◆ rna_def_xr_eventdata()

static void rna_def_xr_eventdata ( BlenderRNA brna)
static

◆ rna_def_xr_session_settings()

static void rna_def_xr_session_settings ( BlenderRNA brna)
static

◆ rna_def_xr_session_state()

static void rna_def_xr_session_state ( BlenderRNA brna)
static

◆ rna_def_xr_user_paths()

static void rna_def_xr_user_paths ( BlenderRNA brna,
PropertyRNA cprop 
)
static

Variable Documentation

◆ rna_enum_xr_action_types

const EnumPropertyItem rna_enum_xr_action_types[]
static
Initial value:
= {
"FLOAT",
0,
"Float",
"Float action, representing either a digital or analog button"},
"VECTOR2D",
0,
"Vector2D",
"2D float vector action, representing a thumbstick or trackpad"},
"POSE",
0,
"Pose",
"3D pose action, representing a controller's location and rotation"},
"VIBRATION",
0,
"Vibration",
"Haptic vibration output action, to be applied with a duration, frequency, and amplitude"},
{0, NULL, 0, NULL, NULL},
}
@ XR_FLOAT_INPUT
Definition: DNA_xr_types.h:66
@ XR_VECTOR2F_INPUT
Definition: DNA_xr_types.h:67
@ XR_POSE_INPUT
Definition: DNA_xr_types.h:68
@ XR_VIBRATION_OUTPUT
Definition: DNA_xr_types.h:69

Definition at line 1348 of file rna_xr.c.

Referenced by rna_def_xr_actionmap(), and rna_def_xr_eventdata().

◆ rna_enum_xr_axis0_flags

const EnumPropertyItem rna_enum_xr_axis0_flags[]
static
Initial value:
= {
{0, "ANY", 0, "Any", "Use any axis region for operator execution"},
"POSITIVE",
0,
"Positive",
"Use positive axis region only for operator execution"},
"NEGATIVE",
0,
"Negative",
"Use negative axis region only for operator execution"},
{0, NULL, 0, NULL, NULL},
}
@ XR_AXIS0_POS
Definition: DNA_xr_types.h:101
@ XR_AXIS0_NEG
Definition: DNA_xr_types.h:102

Definition at line 1403 of file rna_xr.c.

Referenced by rna_def_xr_actionmap().

◆ rna_enum_xr_axis1_flags

const EnumPropertyItem rna_enum_xr_axis1_flags[]
static
Initial value:
= {
{0, "ANY", 0, "Any", "Use any axis region for operator execution"},
"POSITIVE",
0,
"Positive",
"Use positive axis region only for operator execution"},
"NEGATIVE",
0,
"Negative",
"Use negative axis region only for operator execution"},
{0, NULL, 0, NULL, NULL},
}
@ XR_AXIS1_NEG
Definition: DNA_xr_types.h:104
@ XR_AXIS1_POS
Definition: DNA_xr_types.h:103

Definition at line 1418 of file rna_xr.c.

Referenced by rna_def_xr_actionmap().

◆ rna_enum_xr_haptic_flags

const EnumPropertyItem rna_enum_xr_haptic_flags[]
static
Initial value:
= {
{XR_HAPTIC_PRESS, "PRESS", 0, "Press", "Apply haptics on button press"},
{XR_HAPTIC_RELEASE, "RELEASE", 0, "Release", "Apply haptics on button release"},
"PRESS_RELEASE",
0,
"Press Release",
"Apply haptics on button press and release"},
"REPEAT",
0,
"Repeat",
"Apply haptics repeatedly for the duration of the button press"},
{0, NULL, 0, NULL, NULL},
}
@ XR_HAPTIC_PRESS
Definition: DNA_xr_types.h:91
@ XR_HAPTIC_RELEASE
Definition: DNA_xr_types.h:92
@ XR_HAPTIC_REPEAT
Definition: DNA_xr_types.h:93

Definition at line 1387 of file rna_xr.c.

Referenced by rna_def_xr_actionmap().

◆ rna_enum_xr_op_flags

const EnumPropertyItem rna_enum_xr_op_flags[]
static
Initial value:
= {
"PRESS",
0,
"Press",
"Execute operator on button press (non-modal operators only)"},
"RELEASE",
0,
"Release",
"Execute operator on button release (non-modal operators only)"},
{XR_OP_MODAL, "MODAL", 0, "Modal", "Use modal execution (modal operators only)"},
{0, NULL, 0, NULL, NULL},
}
@ XR_OP_MODAL
Definition: DNA_xr_types.h:76
@ XR_OP_RELEASE
Definition: DNA_xr_types.h:75
@ XR_OP_PRESS
Definition: DNA_xr_types.h:74

Definition at line 1372 of file rna_xr.c.

Referenced by rna_def_xr_actionmap().