Commit c68606bd authored by Vicki Pfau's avatar Vicki Pfau Committed by Greg Kroah-Hartman
Browse files

HID: hid-steam: Add gamepad-only mode switched to by holding options



[ Upstream commit cd438e57 ]

This commit adds a hotkey to switch between "gamepad" mode (mouse and keyboard
disabled) and "desktop" mode (gamepad disabled) by holding down the options
button (mapped here as the start button). This mirrors the behavior of the
official Steam client.

This also adds and uses a function for generating haptic pulses, as Steam also
does when engaging this hotkey.

Signed-off-by: default avatarVicki Pfau <vi@endrift.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.com>
Stable-dep-of: 79504249 ("HID: hid-steam: Move hidraw input (un)registering to work")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 622ee123
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment