View Single Post
thp's Avatar
Posts: 1,391 | Thanked: 4,272 times | Joined on Sep 2007 @ Vienna, Austria
#127
I've now re-packaged cwiid for Maemo 5 - you can now use the (slightly more efficient?) wminput application from cwiid-utils instead of wiicontrol. Here's a quick HOWTO:
  • Install cwiid-utils from Extras-Devel
  • sudo gainroot
  • modprobe uinput
  • chmod a+rw /dev/input/uinput
  • exit (Ctrl+D)
  • wminput -c ./maemo-sideways

The maemo-sideways configuration file contains:

Code:
Wiimote.Up	= KEY_LEFT
Wiimote.Down	= KEY_RIGHT
Wiimote.Left	= KEY_DOWN
Wiimote.Right	= KEY_UP

Wiimote.A	= KEY_A
Wiimote.B	= KEY_B

Wiimote.Minus	= KEY_M
Wiimote.Home	= KEY_H
Wiimote.Plus	= KEY_P

Wiimote.1	= KEY_C
Wiimote.2	= KEY_D
Now you can configure the keys in the emulators. The directional keys are mapped so that you hold the wiimote sideways, like in New Super Mario Bros. Wii.

Of course, you can create your own configuration file and do nice things (e.g. map the Nunchuk analog stick to a joystick, ...) - see the wminput help for details.
 

The Following 6 Users Say Thank You to thp For This Useful Post: