I'm sure everyone can image how great it would be to be able to use a wiimote in your games and i decided to have a look into it. There's already some stuff on the forums but it's out of date.
I've had a go at coding it and i've managed to get the leds on the remotes to light up but i havn't gone any further yet because of a problem i'm having with managed types in c++.
This is the code i have so far:
using namespace WiimoteLib;
#define MYCOMMAND __declspec ( dllexport )
static Wiimote wm;
MYCOMMAND bool WMCONNECT()
{
wm.Connect();
}
MYCOMMAND bool WMSETLEDS( bool LED1, bool LED2, bool LED3, bool LED4 )
{
wm.SetLEDs(LED1,LED2,LED3,LED4);
}
MYCOMMAND void WMDISCONNECT()
{
wm.Disconnect();
}
The error message i am getting is because i am declaring a global with type wiimote. If anyone thinks they may have a solution to this i can send the project.
This is not a full library it's more of a translator of another library to make the functions work in DBPro but i know it will work because i've put the 3 functions into one and it changed the leds.
Thanks in advance
Dale2507