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.
This commit is contained in:
@@ -269,6 +269,10 @@ struct settings_changed
|
||||
|
||||
uint32_t fps_divider = 1;
|
||||
uint32_t bitrate_bps;
|
||||
|
||||
// Whether the server should mirror the gamepad to a virtual uinput device;
|
||||
// gamepad inputs are always forwarded for the OpenXR path
|
||||
bool mirror_gamepad = false;
|
||||
};
|
||||
|
||||
struct headset_info_packet
|
||||
|
||||
Reference in New Issue
Block a user