wii-mote: ese extraño mando a distancia
Esta receta explica (a modo de recordatorio) cómo configurar wminput para usar el mando de la Wii como mando a distancia para PC.
Ingredientes
- wminput
Cargar el módulo
wminput
require tener cargado el módulo Linux uinput
. Eso se hace con :
# modprobe uinput
Si no quieres tener que hacer esto cada vez, añadelo al final de /etc/modules
con:
# echo uinput >> /etc/modules
Permisos para usuarios rasos
Crea un fichero llamado /etc/udev/rules.d/uinput.rules
y escribe esto:
KERNEL=="uinput", MODE="0666"
wiimote para control multimedia
Con las siguiente configuración puedes utilizarlo para emular las teclas multimedia habituales en los teclados. Crea un fichero ~/.cwiid/wminput/default
(crea los directorios que no tengas) y escribe esto:
Wiimote.A = KEY_PLAYPAUSE
Wiimote.B = BTN_RIGHT
Wiimote.Up = KEY_UP
Wiimote.Down = KEY_DOWN
Wiimote.Left = KEY_PREVIOUSSONG
Wiimote.Right = KEY_NEXTSONG
Wiimote.Minus = KEY_VOLUMEDOWN
Wiimote.Plus = KEY_VOLUMEUP
Wiimote.Home = KEY_MUTE
Wiimote.1 = KEY_PROG1
Wiimote.2 = KEY_PROG2
En marcha
Ahora tienes que ejecutar wminput
que es el programa que hace la traducción. Sigue las instrucciones:
$ wminput
Put Wiimote in discoverable mode now (press 1+2)...
Ready.
Referencias
[ show comments ]
blog comments powered by Disqus