63 Commits
Author SHA1 Message Date
Reina_Sakiria 592ba04411 fix: d-pad up and left input do not work 2026-10-27 14:53:20 +09:00
Sapphire a9ed48f4c6 Add conforming hand tracking to inputs 2026-10-18 20:17:18 -05:00
Patrick Nicolas a98410bae0 Forward hand tracking data source 2026-10-16 18:30:38 +02:00
Jonathan Steffan 59e4fb075e fix(htc): stop interaction-profile flapping and fix squeeze-touch binding
Blacklist XR_EXT_hand_interaction for HTC so the runtime can't switch
/user/hand/* to ext/hand_interaction_ext mid-session, which drops
controller button input whenever that profile is briefly active.

Point the Focus3 squeeze/touch binding at XRT_INPUT_FRAME_SQUEEZE_TOUCH,
the name the device actually exposes for that slot, instead of a name
that's never set active.
2026-10-05 09:36:37 +02:00
galister 596e661d7e add frame controller profile 2026-09-27 17:14:33 +09:00
Patrick Nicolas d44e7aba9c Assign device ids (fix for c99db1) 2026-08-07 19:19:15 +02:00
JR Lanteigne aeecc857de 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.
2026-07-08 19:10:50 +02:00
Patrick Nicolas c693993748 Revert "Remove simple_controller binding for hand interaction"
This reverts commit 1e2823c019.
2026-02-02 19:16:04 +01:00
Patrick Nicolas 3d24faa47a Remove WIVRN_DUMP_TRACKING 2026-01-29 09:51:59 +01:00
Patrick Nicolas 47d7322070 Remove bool return from update_tracking 2026-01-29 09:51:59 +01:00
Patrick Nicolas fc01002317 Control the tracking loop from server side
On server side, collect each tracking request, create an explicit pattern
describing how the client shall execute them.
2026-01-29 09:51:52 +01:00
Patrick Nicolas 25c2449a5e Use polynomial interpolation for poses and views 2026-01-27 17:32:34 +01:00
Sapphire 1e2823c019 Remove simple_controller binding for hand interaction 2025-12-21 12:04:19 +01:00
Sapphire 6638cefb37 Unify wivrn_controller and wivrn_hand_interaction device code 2025-12-09 04:10:40 -05:00
Sapphire 740dcfdcfb Add poke_ext and pinch_ext poses to all profiles 2025-12-09 04:10:40 -05:00
galister 4baa98c8f1 fix index controller mapping 2025-10-01 20:29:58 +09:00
Patrick Nicolas b9052c6ebb controller/hand_interaction: fix ODR, race condition 2025-08-16 14:15:29 +02:00
Patrick Nicolas 89c5921fc8 Update Monado 2025-08-06 17:27:46 +02:00
Patrick Nicolas e67c071be6 Dump velocities with WIVRN_DUMP_TRACKING 2025-08-03 10:48:44 +02:00
Sapphire c682f8cd9f Make hand interaction a different xdev
* Don't override hands from other drivers on interaction profile change

* Rename *_hand to *_controller

* Fix derived pose and tracking control desync with hand interaction

* Reset pose history on switch from hand interaction, code cleanup
2025-07-09 10:33:32 +02:00
Sapphire 8f0ca7b04c Forward XR_EXT_hand_interaction
* Fix binds

* hand_interaction tids
2025-07-09 10:33:32 +02:00
Patrick Nicolas 11cd9235d9 Allow multiple configuration files
Will merge contents from
@CMAKE_INSTALL_PREFIX@/share/wivrn/config.json
/etc/wivrn/config.json
~/.config/wivrn.config.json (XDG_CONFIG_DIR in fact)

If -f option is provided, just parse that file, don't merge anything
2025-07-06 10:22:25 +02:00
Patrick Nicolas 1698f4aba6 update monado 2025-07-04 23:43:06 +02:00
Sapphire 6377f21b99 Return appropriate error and use logging helper when unsupported input is requested 2025-06-28 10:29:46 +02:00
Patrick Nicolas f2679f21d0 Update monado 2025-06-10 14:44:01 +02:00
Patrick Nicolas d065229cb7 update monado 2025-06-10 14:44:01 +02:00
Sapphire 460fbec06d Quest and Pico body tracking
* Update OpenXR SDK to 1.1.48
2025-06-08 18:07:23 +02:00
Patrick Nicolas c4601a6f0b remove wivrn_controller_destroy 2025-03-02 20:34:32 +01:00
Patrick Nicolas 8a757cb612 auto cast for set_output 2025-03-02 20:34:32 +01:00
Patrick Nicolas c0a74ebb48 auto cast for get_hand_tracking 2025-03-02 20:34:32 +01:00
Patrick Nicolas 7b5923495b auto cast for update_inputs 2025-03-02 20:34:32 +01:00
Patrick Nicolas 7a788c42af auto cast for get_tracked_pose 2025-03-02 20:34:32 +01:00
Patrick Nicolas f102c62ae7 Always expose palm pose
Same as grip if the headset doesn't support it
2025-02-23 20:55:11 +01:00
Patrick Nicolas be7c0862bb Some wivrn_controller refactoring 2025-02-21 18:42:26 +01:00
Patrick Nicolas 3f6ca12cb0 rename WiVRn controllers 2025-02-21 18:42:26 +01:00
Patrick Nicolas 86a12d27dc Add definitions for more interaction profiles 2025-02-21 18:42:26 +01:00
Patrick Nicolas ad9020193d Rework wivrn_session to be a xrt_system_devices
This will allow changing roles dynamically, and fixes some object
lifetime issues.
2025-02-21 18:42:26 +01:00
Patrick Nicolas a6c64f297d Implement derived poses
Client can describe a pose to be derived from an other one, for instance
AIM can be derived from GRIP by applying an offset and rotation.
This reduces the amount of data that needs to be polled and transmitted
over the network.
2025-01-31 15:35:28 +01:00
Patrick Nicolas 8025adf35a cosmetic changes 2025-01-29 23:10:41 +01:00
Mylah 30b38bd3e9 Add an option for palm from grip 2025-01-29 15:48:44 -06:00
Patrick Nicolas 413fadaeb9 Add WIVRN_DUMP_TRACKING for controller pose 2025-01-27 23:43:39 +01:00
Patrick Nicolas c8dee48f0e Update Monado 2024-12-03 19:38:53 +01:00
Patrick Nicolas 281b04cbc2 Allow opt out of hand tracking 2024-10-22 10:36:27 +02:00
Patrick Nicolas b54108bb4c Update monado 2024-10-08 23:16:50 +02:00
Patrick Nicolas 80688b817e Fix palm data being discarded 2024-10-06 19:00:10 +02:00
Patrick Nicolas 6608b1d833 Add support for palm_ext 2024-10-05 13:55:20 +02:00
Patrick Nicolas 28284a9694 wivrn namespace: move all server classes 2024-10-03 23:39:32 +02:00
Patrick Nicolas fdb79b1939 Drop xrt::drivers namespace 2024-10-03 23:39:32 +02:00
rcelyte 0d629291cf Store proxy HMD and controller devices by value 2024-10-03 15:23:36 +02:00
galister 44f48abf8a update monado 2024-09-12 19:32:47 +02:00