Blender Git Loki

Git Commits -> Revision cdeb506

Revision cdeb506 by Peter Kim (master)
October 12, 2021, 04:48 (GMT)
XR Controller Support Step 3: XR Events

Integrates XR input actions with the WM event system. With this commit,
all VR action functionality (operator execution, pose querying, haptic
application), with the exception of custom drawing, is enabled.

By itself, this does not bring about any changes for regular users,
however it is necessary for the upcoming VR add-on update that will
expose default controller actions to users.

For add-on developers, this updates the Python API with access to XR
event data (input states, controller poses, etc.), which can be
obtained via the "xr" property added to the bpy.types.Event struct.
For XR events, this property will be non-null and the event will have
the type XR_ACTION.

Further details:
XR-type window events are queued to the regular window queues after
updating and interpreting VR action states. An appropriate window is
found by either using the window the VR session was started in or a
fallback option.

When handling XR events, mouse-specific processing is skipped and
instead a dedicated XR offscreen area and region (see 08511b1c3de0) is
used to execute XR event operators in the proper context.

Reviewed By: Severin

Differential Revision: https://developer.blender.org/D10944

Commit Details:

Full Hash: cdeb506008e9fc6d8d9a48ce90204ec10101cdd0
Parent Commit: 4b31a21
Lines Changed: +784, -2

5 Modified Paths:

/source/blender/makesrna/intern/rna_wm.c (+21, -0) (Diff)
/source/blender/makesrna/intern/rna_xr.c (+238, -0) (Diff)
/source/blender/windowmanager/intern/wm_event_query.c (+13, -0) (Diff)
/source/blender/windowmanager/WM_api.h (+4, -0) (Diff)
/source/blender/windowmanager/xr/intern/wm_xr_session.c (+508, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021