Added test script for on-connect/on-disconnect

This commit is contained in:
Ingo Ruhnke 2011-01-29 05:12:19 +01:00
parent be1c7a3d27
commit 18d752dbca
3 changed files with 20 additions and 0 deletions

6
test/on-connect.sh Executable file
View file

@ -0,0 +1,6 @@
#!/bin/bash
exec notify-send "Xboxdrv" "Controller connected ${RANDOM} $*" -t 1000
# EOF #

6
test/on-disconnect.sh Executable file
View file

@ -0,0 +1,6 @@
#!/bin/bash
exec notify-send "Xboxdrv" "Controller disconnected ${RANDOM} $*" -t 1000
# EOF #

View file

@ -0,0 +1,8 @@
#!/bin/sh
exec ./xboxdrv --daemon \
--on-connect test/on-connect.sh \
--on-disconnect test/on-disconnect.sh \
--next-controller --next-controller
# EOF #