GameCube Controller as HID, D-Pad "Sticks", doesn't "clear" #60
-
Hi, Switching to Gamecube_USB_HID and running the Microsoft "Game Controllers" program, I see the GameCube controller. Again I can watch all the keys being pressed, joysticks move, etc. The D-Pad though, once its pressed, stays pressed until I press another direction; then it stays pressed in that direction. I thought it might be a hardware issue, so I played around with the control itself, and it seems to not be sticking in hardware. I uploaded GamecubeController.ino back to the controller, and watched it more carefully in the terminal. It registers when the D-Pad is pressed, but it also registers when it stops being pressed. The terminal sees the button pressed as long as I hold it, and it sees when I let go; but this program just listens and reports back on whats happening. Its not actively doing anything (As far as I can tell). The Gamecube_USB_HID program seems to set something when the button is pressed, but doesn't clear it out after. Any help would be greatly appreciated. I am not a programmer, but it seems a software issue. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I cross posted this to Reddit, and someone answered with a solution:
And that solved it. Surprised its lasted this long on the code. |
Beta Was this translation helpful? Give feedback.
I cross posted this to Reddit, and someone answered with a solution:
At the end of the D-Pad chain of Ifs, added in:
And that solved it. Surprised its lasted this long on the code.