Added test script for on-connect/on-disconnect
This commit is contained in:
parent
be1c7a3d27
commit
18d752dbca
3 changed files with 20 additions and 0 deletions
6
test/on-connect.sh
Executable file
6
test/on-connect.sh
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
exec notify-send "Xboxdrv" "Controller connected ${RANDOM} $*" -t 1000
|
||||
|
||||
# EOF #
|
||||
|
6
test/on-disconnect.sh
Executable file
6
test/on-disconnect.sh
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
exec notify-send "Xboxdrv" "Controller disconnected ${RANDOM} $*" -t 1000
|
||||
|
||||
# EOF #
|
||||
|
8
test/xboxdrv-daemon-connect-scripts.sh
Executable file
8
test/xboxdrv-daemon-connect-scripts.sh
Executable 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 #
|
Loading…
Reference in a new issue