I'm using the Joystick Library version 2, after a load of tweaking to get it just right it's now running my button box just fine.
But, it keeps Windows awake. I tell Windows to sleep, it does, but immediately wakes up. If I unplug the micro Windows sleeps just fine.
Now, you could say unplugging the cable before sleeping isn't the greatest 1st world problem, but it bothers me, what is the joystick library, or my code doing that other hids isn't.
All the serial debugging has been turned off, the Serial line isn't even opened. There are no calls to the Joystick unless something is pressed or released. Nothing is cleared, reset, defaulted, nothing at all. So while the code is running and the box isn't being used there isn't (or shouldn't be) a single bit of data going anywhere.
Still Windows doesn't sleep.
Have I missed something about how the Joystick thing works? Or is there something I've misunderstood?
Any ideas?
Thanks.