Add scripts to manage Wii and Xbox 360 gamepad.

... Maybe old scripts
This commit is contained in:
Jeremy Gardais 2014-09-26 00:27:42 +02:00
parent 2de4d35c3e
commit 8444e5d130
2 changed files with 37 additions and 0 deletions

2
manette360 Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
xinput set-int-prop 5 'Device Enabled' 32 0

35
wiimote Executable file
View File

@ -0,0 +1,35 @@
#! /bin/sh
# Description: Manage a Wiimote
#
# Depend: wminput, bluetooth
#
# $1: Wiimote mode
# ir: infrared
# acc: accelerometer
# off: turn off
# Wiimote MAC's address
mac="00:21:BD:07:A9:B1"
case "${1}" in
ir )
sudo /etc/init.d/bluetooth restart
sudo wminput -c ir_ptr ${mac}
echo "Activation of Wiimote in InfraRed";;
acc )
sudo /etc/init.d/bluetooth restart
echo "Activation of Wiimote in accelerometer";;
off )
sudo /etc/init.d/bluetooth stop
echo "by =)";;
* )
echo "Bad argument"
echo "use, wiimote [ir, acc, off]"
exit 1;;
esac
exit 0