Use the Wiimote in your Game Maker Game
Support multiple Wiimotes!
Need:


.Net FrameWork
Bluetooth stack
Bluetooth software (Bluesoleil has problems, but I have Bluesoleil 6, has no problems)
The functions:
Version 2 BETA 1:
Go to my website.
Version 1:
WM_ConnectWiiMotes() Call this function first. Returns number of Wiimotes WM_DisconnectWiiMotes() Call this function on the end. WM_SetRumble(WiiMoteId,Rumble) Rumble or not (true/false) WM_SetLeds(WiiMoteId,Led1,Led2,Led3,Led4) Led1 to 4: on or off (true/false) Balance Board: led 1 is the led on the Power Button WM_GetButton(WiiMoteId,button) button: see in script (A is the same as the Power Button of Balance Board) WM_CheckExtension(WiiMoteId) Gets the extension: 0 Noone (I think) 2753560576 Nunchuck 2753561602 BalanceBoard WM_CheckBattery(WiiMoteId) Gets the battery level (0: empty, 200: full) WM_GetAccelX,Y,Z(WiiMoteId) Gets the Accel: about -1 to 1 WM_Nunchuck_GetAccelX,Y,X(WiiMoteId) Gets the Accel: about -1 to 1 WM_Nunchuck_GetJoyStickX,Y(WiiMoteId) Gets the Joystick Values WM_Nunchuck_GetButton(WiiMoteId) See script WM_BalanceBoard_GetWeight(WiiMoteId,position) See script WM_BalanceBoard_GetCenterOfGravity(WiiMoteId,XorY) XorY: 0= Get X, 1 = Get Y WM_IR_Exists(WiiMoteId,SensorId (0 to 3) WM_IR_X(WiiMoteId,SensorId (0 to 3) WM_IR_Y(WiiMoteId,SensorId (0 to 3) WM_IR_Size(WiiMoteId,SensorId (0 to 3)
How to connect:
from http://blogs.msdn.co...14/1879033.aspxStart up your Bluetooth software and have it search for a device.
Hold down the 1 and 2 buttons on the Wiimote. You should see the LEDs at the bottom start flashing. Do not let go of these buttons until this procedure is complete. If pairing the Wii Fit Balance Board, open the battery cover on the underside of the balance board and hold the little red sync button.
Wiimotes should show up in the list of devices found as Nintendo RVL-CNT-01. Balance Boards will show up as Nintendo RVL-WBC-01. If it's not there, start over and try again.
Click Next to move your way through the wizard. If at any point you are asked to enter a security code or PIN, leave the number blank or click Skip. Do not enter a number.
You may be asked which service to use from the Wiimote. Select the keyboard/mouse/HID service if prompted (you should only see one service available).
Finish the wizard.
It's my first DLL!!!
If you find Issues, tell me!
Thanks to:
Brain Peek, for his WiiMoteLib
Freaked, for his help on GMC
The Cool Gamer, for his GM .net layer


Dutch version
Update 1:
IR is now supported.
Update 2:
The balance board works now correct.
Mr. Wolf
Edited by Mr. Wolf, 13 September 2010 - 02:27 PM.