games/steam-sandbox: Make controllers work
The full sysfs is required for steam to discover controllers. Despite some individual games detecting them, for full controller support (especially in wine/proton), steam has to detect them.
This commit is contained in:
parent
0313c45b9e
commit
36b564d978
|
@ -38,8 +38,6 @@ let
|
||||||
--ro-bind /tmp/.X11-unix /tmp/.X11-unix
|
--ro-bind /tmp/.X11-unix /tmp/.X11-unix
|
||||||
--ro-bind "$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY" "$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY"
|
--ro-bind "$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY" "$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY"
|
||||||
--dev-bind /dev/dri /dev/dri
|
--dev-bind /dev/dri /dev/dri
|
||||||
--ro-bind /sys/dev/char /sys/dev/char
|
|
||||||
--ro-bind-try /sys/devices/pci0000:00 /sys/devices/pci0000:00 # FIXME: hardcoded path for sayuri
|
|
||||||
--ro-bind /run/opengl-driver /run/opengl-driver
|
--ro-bind /run/opengl-driver /run/opengl-driver
|
||||||
--ro-bind-try /run/opengl-driver-32 /run/opengl-driver-32
|
--ro-bind-try /run/opengl-driver-32 /run/opengl-driver-32
|
||||||
|
|
||||||
|
@ -66,6 +64,7 @@ let
|
||||||
# input
|
# input
|
||||||
--dev-bind /dev/input /dev/input
|
--dev-bind /dev/input /dev/input
|
||||||
--dev-bind-try /dev/uinput /dev/uinput
|
--dev-bind-try /dev/uinput /dev/uinput
|
||||||
|
--ro-bind /sys /sys # required for discovery
|
||||||
)
|
)
|
||||||
|
|
||||||
unset SDL_VIDEODRIVER QT_QPA_PLATFORM # games generally don’t support wayland
|
unset SDL_VIDEODRIVER QT_QPA_PLATFORM # games generally don’t support wayland
|
||||||
|
|
Loading…
Reference in a new issue