Ok so I'm getting there. The app now quietly sits in the corner constantly checking for new wiimotes and extension controllers. It needs a bit of cleaning up, but it's only using 1% cpu on my rig in full scan mode so it should be good enough.
The only thing is I'm using the report normally used to set the leds to constantly check the loop for disconnected wiimotes. That means external apps can't control the leds/rumble. I need to see if there is another harmless report I can send that doesn't really effect anything.
I'm hoping tentatively for some kind of release this upcoming weekend.... giving me just enough time to play a few games before my surgery later this month.
In the meantime, I need help with the ir script. I can find the midpoint and the tangent, that's simple equation stuff, but I'm not sure how to handle the points to determine where the wiimote is. The wii does some really clever stuff like read the rotation of the wiimote and estimate a ir position if only one point is found, ect..... I need "Teh Mathz" people.
Ironically I think a 4 point setup will be easier to script. I'll assume you can always see all 4, find the midpoint, and bob's your uncle.