248 Commits
Author SHA1 Message Date
Sapphire 64ecbdc24b Move battery handling into dedicated monitor class 2026-11-11 16:23:54 -05:00
Sapphire 2233817b59 Forward controller battery info via XR_EXT_interaction_profile_battery_state_display 2026-11-11 16:23:54 -05:00
Sapphire aba0210923 Bind Frame bumper click to trigger as well for GUI interactions 2026-11-11 16:23:54 -05:00
Sapphire 86bbb80f90 Reorder some inputs and fix comments 2026-11-11 15:56:13 -05:00
Sapphire f4358ebe85 Reuse menu ID for view button, give left system click a distinct ID 2026-11-11 15:56:13 -05:00
Patrick Nicolas 7f9957ae79 Fix incorrect resolution show in stream settings 2026-11-11 12:00:26 +01:00
Patrick Nicolas 32d4fee95e Fix warped image when growing the swapchain 2026-11-03 21:06:40 +01:00
Patrick Nicolas 8c5afd9a27 Reduce calls to instance.now() 2026-10-27 22:08:23 +01:00
galister f91b68491d refactor menu_toggle 2026-10-27 22:08:23 +01:00
galister 1f8e5afcf0 refactor chord_state 2026-10-27 22:08:23 +01:00
galister 528f8e7246 frame: gamepad emulation 2026-10-27 22:08:23 +01:00
galister 76da2e1cb7 client: support XR_META_foveation_eye_tracked (#1123) 2026-10-22 18:52:55 +02:00
Patrick Nicolas 879c50c743 Add back unused-variable warning 2026-10-16 08:03:21 +02:00
Philip Poloczek 640e1a5405 client: don't hold a strong stream reference while creating decoders
shard_accumulator only keeps a weak_ptr to the stream, but setup() passed
it a temporary from shared_from_this(). setup() runs on the network
thread, so if the main thread drops its reference meanwhile (e.g. while
shutting down after XR_ERROR_INSTANCE_LOST), that temporary is the last
one and ~stream runs on the network thread. It then joins
network_thread from itself: std::system_error (EDEADLK) and
std::terminate.

Pass weak_from_this() instead so no strong reference is created.
2026-10-07 13:24:15 +02:00
galister e5923e155a linux client: only show 10-bit if supported 2026-09-29 19:22:33 +02:00
Patrick Nicolas 117027c390 Remove FoV from headset info packet 2026-09-29 19:22:33 +02:00
Patrick Nicolas 07131bec85 Set WIVRN_USE_V4L2 in wivrn_config.h 2026-09-29 19:22:33 +02:00
galister 596e661d7e add frame controller profile 2026-09-27 17:14:33 +09:00
galister 2191884e95 linux client: v4l2 decoder 2026-09-27 17:14:33 +09:00
Sapphire 4749c15aa4 Update Monado 2026-08-01 20:37:14 +02:00
Guillaume Meunier 3a71509ff8 Fix typo 2026-07-26 21:14:12 +02:00
Guillaume Meunier 3c56ff7403 Remove bitrate setting with the thumbstick 2026-07-26 21:14:12 +02:00
Guillaume Meunier a91b8982d2 Allow disabling the in-stream window from the stream scene 2026-07-26 18:13:15 +02:00
ahsanswr 80ee73128d Code cleanup 2026-07-26 17:24:36 +02:00
ahsanswr 5e359fe983 UI improvements 2026-07-26 17:24:36 +02:00
ahsanswr 2e9f2c8646 Ui improvements 2026-07-26 17:24:36 +02: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 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
Patrick Nicolas 79d57a35d7 Wait for left/right decoders to be ready before start 2026-06-15 21:25:21 +02:00
Patrick Nicolas 6d6353fe49 Disable passthrough if alpha not ready 2026-06-15 21:12:31 +02:00
Patrick Nicolas 43395e6e40 Add logs for refresh rate change 2026-06-13 23:05:52 +02:00
Guillaume Meunier fdb7ace47a Revert "WIP snapping"
This reverts commit 11d166d518.
2026-06-05 21:19:46 +02:00
Guillaume Meunier 11d166d518 WIP snapping 2026-06-05 20:43:35 +02:00
Guillaume Meunier 4afcadf19d Change the GUI distance with the thumbstick in the stream scene 2026-06-05 20:43:35 +02:00
Guillaume Meunier f01ffd9182 Use a fixed GUI position in the stream scene when the GUI is interactable 2026-06-05 20:43:35 +02:00
EasonZxp 28c72c8e64 Add PFDM MR controller support 2026-05-26 10:52:34 +02:00
Amanda M. Watson b9f2fde119 refactor hmd_traits into separate file, make class in application, and remove hardware.h/cpp 2026-05-10 19:11:17 +02:00
Patrick Nicolas 1b9b74cce1 Revert to explicit hmd_traits initialization 2026-05-10 19:11:17 +02:00
Patrick Nicolas 50a0f1a0ed Add quirk to prevent discarding frames 2026-05-10 19:11:17 +02:00
Patrick Nicolas 1685bbde2c rename override_view_for_hmd -> override_view 2026-05-10 19:11:17 +02:00
Patrick Nicolas d8fbbb23ab Remove model enum, change Quest default power mode
Store all quirks in the hmd_traits object
2026-05-10 19:11:17 +02:00
amwatson 83eb6ff849 override_view() should take hmd_traits as argument to ensure envvar overrides are read consistently 2026-05-10 19:11:17 +02:00
amwatson d70c1fb414 add runtime-initialized 'hmd_traits' struct to streamline hmd-specific checks 2026-05-10 19:11:17 +02:00
Patrick Nicolas 63a22d32db Allow headset timewarp 2026-04-27 10:48:26 +02:00
Patrick Nicolas e21b1adf1d Send both frame rate and refresh rate in description 2026-04-27 10:26:58 +02:00
Patrick Nicolas 6d072e30cd Simplify some preferred refresh rate logic 2026-04-19 09:14:03 +02:00
galister 00f0553dc7 add option for half fps 2026-04-19 09:14:03 +02:00
Patrick Nicolas 8f3f2d4900 Don't use extension for stream scale/bias 2026-04-13 16:23:07 +02:00