How can I use a bluetooth gaming controller to play games in kubuntu 12.04?
Specifically, I want to play with a wii controller, but also have access to ps3 and xb360 conrollers. I installed wmgui, lswm, and wminput. They each seem to do what they are supposed to, but I just want to be able to play mednafen and kobo. Kubuntu won't let me use it as a joystick and says something like the nintendo controller not being in /dev/ or something like that.
I am fairly new to linux and don't feel very comfortable changing system settings from the command line. Yeah i can do it, but if things don't work out I have to remember what to change back, how to change it back and what to change it back to. I have had to reinstall my linux before because of botched settings messing up system stability and I don't want to keep making that mistake.
Is there a utility that would let me connect, configure and use bluetooth controller(s)? I know that most people think that gaming on linux is stupid, but I feel stupid trying to play mednafen with my keyboard. An all in one program to use the three main types of conrollers on the market now (wii, ps3, xb360) would be very helpful for gamers using linux and would certainly help more people see linux gaming as a good idea. Does such a program exist yet?
Edit below added 1/25/2013
@Grumbel - Thank you for your quick reply. Your advice was very helpful.
This is what I did to get the wii controller working:
1- Connect bluetooth radio to computer.
2- Use the package manager to find and install "wminput" and "wmgui"
3- Restart for good measure (not sure if it is necessary or not)
4- Confirm that Wii remote works properly by using wmgui.
5- Copy "/etc/cwiid/wminput/buttons" to "/home/[username]/Documents"
6- Changed the copied buttons file to suit my needs (detailed below)
7- Open a terminal
8- run "sudo wminput -c /home/[username]/Documents/buttons"
9- Play Kobo for a while (tweak settings in buttons file)
10- Start Mednafen
11- Configure button mappings in Mednafen with ALT+SHIFT+[number]
12- Play Mednafen, have fun
To stop wminput, hold the power button on the wii remote. Then you can mess around with the different button settings in the config file. Save the configuration and restart wminput with the same command as before.
Here is what is in my buttons file:
Plugin.led.Led1 = 1
Plugin.led.Led4 = 1
Wiimote.A = BTN_LEFT
Wiimote.B = BTN_RIGHT
Wiimote.Up = KEY_LEFT
Wiimote.Down = KEY_RIGHT
Wiimote.Left = KEY_DOWN
Wiimote.Right = KEY_UP
Wiimote.Minus = KEY_BACKSPACE
Wiimote.Plus = KEY_ENTER
Wiimote.Home = KEY_TAB
Wiimote.1 = KEY_RIGHTSHIFT
Wiimote.2 = KEY_RIGHTCTRL
Nunchuk.C = KEY_LEFTSHIFT
Nunchuk.Z = KEY_LEFTCTRL
Classic.Up = KEY_UP
Classic.Down = KEY_DOWN
Classic.Left = KEY_LEFT
Classic.Right = KEY_RIGHT
Classic.Minus = KEY_BACKSPACE
Classic.Plus = KEY_ENTER
Classic.Home = KEY_TAB
Classic.A = BTN_LEFT
Classic.B = BTN_RIGHT
Classic.X = KEY_X
Classic.Y = KEY_Y
Classic.ZL = BTN_LEFT
Classic.ZR = BTN_RIGHT
Classic.L = KEY_L
Classic.R = KEY_R
I have the remote turn on led numbers one and four so I know the remote is on and connected to my computer, as opposed to connected to the wii. I am sure there are better ways to configure it, but so far this one works for me. I have not tested the nunchuck or classic controller, but I do suspect that they will work as they should.
I was also thinking of using wminput like this:
"sudo wminput -d -c /home/[username]/Documents/buttons"
so that it will automatically connect whenever the 1 and 2 buttons are pressed on the wii remote. Is there a way to issue this command automatically at startup?