Przeglądaj źródła

update entrypoints to configure event devices for joystick interposer

Dan Isla 10 miesięcy temu
rodzic
commit
c56de05f4f
2 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 1
      entrypoint.sh
  2. 0 1
      selkies-gstreamer-entrypoint.sh

+ 2 - 1
entrypoint.sh

@@ -26,10 +26,11 @@ export LD_LIBRARY_PATH="/usr/lib/libreoffice/program${LD_LIBRARY_PATH:+:${LD_LIB
 # Configure joystick interposer
 export SELKIES_INTERPOSER='/usr/$LIB/selkies_joystick_interposer.so'
 export LD_PRELOAD="${SELKIES_INTERPOSER}${LD_PRELOAD:+:${LD_PRELOAD}}"
-export SDL_JOYSTICK_DEVICE=/dev/input/js0
 mkdir -pm1777 /dev/input || sudo-root mkdir -pm1777 /dev/input || echo 'Failed to create joystick interposer directory'
 touch /dev/input/js0 /dev/input/js1 /dev/input/js2 /dev/input/js3 || sudo-root touch /dev/input/js0 /dev/input/js1 /dev/input/js2 /dev/input/js3 || echo 'Failed to create joystick interposer devices'
 chmod 777 /dev/input/js* || sudo-root chmod 777 /dev/input/js* || echo 'Failed to change permission for joystick interposer devices'
+touch /dev/input/event1000 /dev/input/event1001 /dev/input/event1002 /dev/input/event1003 || sudo-root touch /dev/input/event1000 /dev/input/event1001 /dev/input/event1002 /dev/input/event1003 || echo 'Failed to create joystick interposer event devices'
+chmod 777 /dev/input/event* || sudo-root chmod 777 /dev/input/event* || echo 'Failed to change permission for joystick interposer event devices'
 
 # Set default display
 export DISPLAY="${DISPLAY:-:20}"

+ 0 - 1
selkies-gstreamer-entrypoint.sh

@@ -12,7 +12,6 @@ until [ -d "${XDG_RUNTIME_DIR}" ]; do sleep 0.5; done
 # Configure joystick interposer
 export SELKIES_INTERPOSER='/usr/$LIB/selkies_joystick_interposer.so'
 export LD_PRELOAD="${SELKIES_INTERPOSER}${LD_PRELOAD:+:${LD_PRELOAD}}"
-export SDL_JOYSTICK_DEVICE=/dev/input/js0
 
 # Set default display
 export DISPLAY="${DISPLAY:-:20}"