545 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
sunryze e7d140ca8d Fix quaternion sign alignment of replaced samples 2026-10-27 14:53:20 +09:00
galister bd0d259072 client: support XR_META_foveation_eye_tracked (#1123) 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
Patrick Nicolas 879c50c743 Add back unused-variable warning 2026-10-16 08:03:21 +02:00
Jonathan Steffan 61abaf44e2 chore: update monado to a6a580491, use math_quat_exp_so3 2026-10-15 23:00:44 +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
Patrick Nicolas fc48b6155e Assume user is present on session resume 2026-10-03 14:57:22 +02:00
Patrick Nicolas 117027c390 Remove FoV from headset info packet 2026-09-29 19:22:33 +02:00
dime-online 754ba4f6e1 driver: fix inverted interpolation factor in history::get_at
interpolate(before, after, t) expects t = 0 at the before sample and
t = 1 at the after sample (see hand_joints_list.cpp: radius = a.radius
* (1 - t) + b.radius * t, and monado's m_space_relation_interpolate
which lerps from the predecessor with the elapsed fraction).

The factor was computed as (after - now) / (after - before), which is
1 - t: querying at the before timestamp returned the after sample,
querying at the after timestamp returned the before sample, and
queries in between returned the pose mirrored about the segment
midpoint.

Compute t from the before sample so hand and body skeleton queries
between two tracking samples interpolate along the motion instead of
against it.
2026-09-27 19:17:06 +02:00
galister 596e661d7e add frame controller profile 2026-09-27 17:14:33 +09:00
Sapphire 40f2079268 Fix stop_application not working after Monado update 2026-09-26 04:59:02 -05:00
Sapphire c78bca4ddc Use interpolate/extrapolate functions from pose_list in generic tracker pose list 2026-09-26 04:49:24 -05:00
Patrick Nicolas dcc7579273 Avoid pacer immediate return when achievable
In case of discarded frames (no end frame or no layers) we don't get
called on mark_gpu_done, so times don't get updated. If the game
continues to call waitFrame, we advance the predicted display time, but
may enter the immediate return, accumulating delay.
2026-09-19 17:23:52 +02:00
galister 07657d7281 update monado 2026-09-16 23:23:12 +09:00
galister b27f8dd831 update monado 2026-09-16 23:23:12 +09:00
Anton Kesy e0f5a84d8d Fix typos (#1109) 2026-09-13 20:32:28 +02:00
schlegp d81be2ae03 Fix angular velocity sign in pose_list
The angular velocity was worked out with the wrong formula. It used
dq * q, but it should be dq * q^-1 (the inverse of q, which is just
its conjugate here because q is normalized).

Using q instead of its inverse pointed the angular velocity the wrong
way. Games read this value when you let go of a controller, so thrown
objects came out spinning wrong.
2026-09-01 21:38:03 +02:00
Patrick Nicolas 9e9fc859f5 Detect network errors from any socket call 2026-08-31 19:34:05 +02:00
Sapphire 28a8fbd743 Add patches and dashboard setting for maximum steamvr_lh pose prediction 2026-08-29 15:24:53 -05:00
Patrick Nicolas 9bad971d8a Fix invalidated pointer usage 2026-08-29 16:26:15 +02:00
Patrick Nicolas 8738131fb1 Native USB networking for Quest
Requires Horizon OS >= 2.6
2026-08-29 12:33:59 +02:00
Sapphire c7881fbc9e Fix deadlock when exiting due to all clients exiting 2026-08-26 23:39:50 -05:00
Sapphire c564436377 Gracefully stop applications on server quit
This doesn't work with Ctrl+C as the entire process group is signaled,
but it works with wivrnctl stop-server.
2026-08-24 14:13:07 -05:00
Patrick Nicolas e604848409 Remove WIVRN_DUMP_TIMINGS 2026-08-17 21:30:57 +02:00
galister ef0f6373b1 add slider for LH_STICK_DEADZONE 2026-08-07 21:01:58 +02:00
Patrick Nicolas d44e7aba9c Assign device ids (fix for c99db1) 2026-08-07 19:19:15 +02:00
Sapphire 4749c15aa4 Update Monado 2026-08-01 20:37:14 +02:00
Sapphire a6da4e6dc9 Update Monado 2026-08-01 20:37:14 +02:00
Sapphire 2027dd04d0 Zero out output relation when generic tracker is disabled 2026-07-31 13:52:33 -05:00
Sapphire 22f3dfda88 Set position & orientation tracked bits when valid on Meta body trackers 2026-07-11 18:04:23 -05:00
SapphireandGuillaume Meunier 1cc61fd07a Make virtual tracker xdevs toggleable
Co-authored-by: Guillaume Meunier <[email protected]>
2026-07-10 14:52:50 -05:00
Sapphire 727445520e Create xdevs from body skeleton 2026-07-10 13:22:14 -05:00
Sapphire e611fdcc51 Add velocity for htc_body 2026-07-10 13:22:14 -05:00
Sapphire 534b4c23e3 Use shared pose_flags enum in packets 2026-07-10 13:22:13 -05:00
Sapphire 2e28b0a4ad Forward body skeletons from headset 2026-07-10 13:22:05 -05:00
JR Lanteigne 91f6e69ffb Mirror forwarded input devices to uinput
Mirror the gamepad forwarded from the headset to a uinput device with the standard Xbox layout, so applications that do not read it through OpenXR, such as SDL and Steam Input, pick it up. This extends the existing hid-forwarding uinput path, which already covered keyboard and mouse.

The headset chooses which devices to forward (keyboard, mouse, gamepad), off by default. The hid-forwarding server option gates the uinput mirror only; the OpenXR gamepad is always exposed. The mirror needs the uinput module and write access to /dev/uinput.

Gamepad rumble written to the uinput device is read back and forwarded to the headset as OpenXR haptics.
2026-07-08 19:10:50 +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
Jonathan Steffan b9c8a54d92 Add WiVRn-native Perfetto via Perfetto SDK
Optional server profiling built on the Perfetto SDK. Adds CPU spans
(compositor, encoder, network), GPU encode/copy slices from Vulkan timestamp
queries (Vulkan/NVENC/VAAPI), and headset feedback markers from dump_time.

WIVRN_TRACING enables tracing and selects the backend (system, inprocess, or
both); WIVRN_USE_PERFETTO gates it at build time and compiles it out otherwise.
WIVRN_TRACE_MONADO additionally drives Monado's percetto tracing from the same
switch so WiVRn and Monado land on one timeline.

Tooling: server-tracing[-monado] presets and a CI build, two Perfetto configs
(WiVRn-only and full-system), a wivrn_capture.py capture wrapper, a pftrace
summary script, and docs/profiling.md.
2026-07-01 21:04:08 +02:00
Patrick Nicolas e16e713cb6 fix deadlock on reconnect 2026-06-09 19:22:36 +02:00
Patrick Nicolas b387623aac Update Monado 2026-06-06 11:06:44 +02:00
Patrick Nicolas 1d8f8b4779 Ignore extreme values for app CPU/GPU time 2026-05-27 11:15:20 +02:00
EasonZxp 28c72c8e64 Add PFDM MR controller support 2026-05-26 10:52:34 +02:00
Patrick Nicolas b5226f0480 Remove app pacer from debug GUI on destruction 2026-05-08 16:23:35 +02:00
Patrick Nicolas 6d70dca173 Configurable app pacer margin 2026-04-30 20:16:24 +02:00
Patrick Nicolas e21b1adf1d Send both frame rate and refresh rate in description 2026-04-27 10:26:58 +02:00
Patrick Nicolas e452488666 Fix refresh rate change 2026-04-25 18:55:12 +02:00
Patrick Nicolas 10387b9b00 Separate framerate/refresh rate 2026-04-19 09:14:03 +02:00
Patrick Nicolas 6d072e30cd Simplify some preferred refresh rate logic 2026-04-19 09:14:03 +02:00