Add gamepad forwarding through OpenXR

Forward a gamepad paired to the headset to the server. Useful when the controller is in range of the headset but not the server, such as a DualSense paired to a Quest over Bluetooth.

The headset reads the gamepad through the OpenXR microsoft/xbox_controller profile and forwards it on the existing input rails: gamepad device ids in the inputs packet, plus a gamepad entry in the interaction profile array that signals connection and disconnection from the tracking thread.

The server exposes a native OpenXR gamepad at /user/gamepad, connected while the headset reports a gamepad interaction profile. This needs no permission and is always available.

Rumble is sent back to the headset and applied through OpenXR haptics.
This commit is contained in:
JR Lanteigne
2026-07-08 19:10:50 +02:00
committed by xytovl
parent 9935203cfb
commit aeecc857de
14 changed files with 580 additions and 103 deletions
+1
View File
@@ -123,6 +123,7 @@ if (WIVRN_BUILD_SERVER)
driver/wivrn_hmd.cpp
driver/wivrn_controller.cpp
driver/wivrn_eye_tracker.cpp
driver/wivrn_gamepad.cpp
driver/wivrn_android_face_tracker.cpp
driver/wivrn_fb_face2_tracker.cpp
driver/wivrn_htc_face_tracker.cpp