So the other week I had my wireless Xbox 360 controller out, and had it hooked up to my PC via a Wireless Reciever for Windows so that I could chat with my parents using the headset over MSN Messenger. (A bit of a process to set up, yes, but the headset works a lot better than the microphone that came with my computer, and it allows me to wander around the house while still being able to chat). Anyway, it got me thinking – wouldn’t it be cool if I was able to use my Xbox 360 remote to move my cursor around and click on things, or better yet – as a remote control while watching DVDs? This especially makes sense where I am living, as my computer is set up in the living room and is the “entertainment system” of the house. (The roommate who did own a TV moved out in September, so when the roommates or myself want to watch a DVD, we use the computer in the living room. Besides, the surround sound on the computer works great 😉 ).
Anyway, after a bit of digging around (and a thread on gamedev.net) I was able to find the correct win32 api call to make via PInvoke to simulate a mouse click. Hopefully in a few days I will post a working demo and source code.
I’d post a screenshot, but there really isn’t anything to see – just a black window and a mouse cursor. 🙂