Knowledge Database Article on how to use Wii Remote on PC
This is a tutorial on how to use Nintendo Wii mote (remote) controller + Nunchuk on PC via Bluetooth.
There's lot to do, but fairly simple. I will write Wiki article of this as this seems quite interesting project to me.
So far i got it working in windows, but arma3 did not like it, i was able to see it, but couldn't control anything.
Nunchuk has analog + tilt axis' so it can be used nicely for flying a plane or heli, which i wanna test.
I have gone thru lot of stuff and Wii mote seem to be very powerful tool, you can do amazing things, like "headtracking" which makes 2D screen into real 3D, but ofcourse software has to support it, i don't think any games support it. I'm not talking about 3D monitor, but objects. For example if i put one window on top of another (in windows, by covering bottom window from end to end with top window), then it doesn't matter if you move your head left or right, you still see only top window, but with headtracking, if you move your head left or right, you can see what is under the top window, it's like looking past objects, it makes it so realistic, that objects seem to be floating off of screen.
It's amazing, but i haven't tried that yet, i need to make IR sensors (normal IR lights will do).
To start off, here's what you need:
Bluetooth USB dongle (any will do, but obviously not the ones that come with keyboard or any other device, it must be stand alone, grab one from ebay)
Wii mote + nunchuk (duh obviously)
Toshiba Bluetooth Stack (i would upload, but it's not freeware and needs crack)
Dolphin Wii Emulator (will probably include in wiki article, just google for it)
GlovePIE (google for it, will include in wiki article)
1. insert your bluetooth dongle
2. install toshiba bluetooth stack
3. reboot pc
4. open bluetooth settings (toshiba bluetooth stack tray icon, right click on it and select bluetooth settings)
5. in bluetooth settings click "new connection" (keep it on express mode)
6. on wii mote press and hold RED sync button (its under battery cover)
7. continue with new connection
8. it should sync up
9. run dolphin wii emulator
10. in dolphin wii emu, select "options > wiimote settings"
11. select "real wiimote" (if it doesn't show, click on refresh, it should shake motor in wii mote, it means it works)
- now its connected and working
12. run GlovePIE and use the scripts below:
Code: Select all
// Nunchuk analog as mouse movement mouse.x += (DeadZone(Nunchuk.JoyX, 0%)/75) mouse.y += (DeadZone(Nunchuk.JoyY, 0%)/75) //D-pad as arrow keys Keyboard.Up = Wiimote1.Up Keyboard.Down = Wiimote1.Down Keyboard.Left = Wiimote1.Left Keyboard.Right = Wiimote1.Right // + and - as zoom-in and zoom-out Keyboard.Ctrl + Keyboard.Equals = Wiimote1.Plus Keyboard.Ctrl + Keyboard.Minus = Wiimote1.Minus // LED check on mote using keyboard 1 2 3 4 Wiimote1.Led1 = Keyboard.One Wiimote1.Led2 = Keyboard.Two Wiimote1.Led3 = Keyboard.Three Wiimote1.Led4 = Keyboard.Four // Left and Right mouse clicks as nunchuk C and Z mouse.LeftButton = (Nunchuk.C) mouse.RightButton = (Nunchuk.Z) // 1 and 2 as Page Up and Page Down Keyboard.PageDown = Wiimote1.Two Keyboard.PageUp = Wiimote1.One
I will write wiki article, this is why its basic right now, i won't be updating this topic with more details, instead i will link the wiki article once completed.
This is here for search engines mostly, so people can find it easily. i will include step-by-step tutorial with pictures and screenshots soon.
I just connected another Wiimote to PC, this is insane, i can use both of them at same time, doing different things, this is crazy.
I got 3 motes and 4 nunchuks (nunchuk is useless without mote) .. 3 of them on PC .. lol. I'll make some hybrid-combo-super-yber gaming controller out of it all. I got 3 motion sensors in total and 3 analogs to play with, gonna be interesting to test them in games.
I've been testing them with GlovePIE tool, but i'm having serious issues mapping any other controller buttons onto wiimotes, no idea wtf.
i'm 100% sure that the following is correct for my 360 controller:
Code: Select all
XInput.LeftStickX = Nunchuk1.JoyX
Code: Select all
Keyboard.W = XInput.LeftStickX
I bet i can get it working on XP without problems, but there it's no use, since i can't play modern games on XP. what a fucking lameness and conspiracy.
Oh well .. what i wanna do, is play with Wiimotes in games and use them as ANALOGS not digital.
I can map keyboard buttons onto it, but only as digital inputs, i need analog.