Skip to content

Conversation

@ssszcmawo
Copy link
Contributor

Here is the implementation for saving gamepad connection and disconnection events. I added a helper variable, prevReady, to the Gamepad structure to keep track of its previous ready state. Now it is initialized along with ready in the PlayAutomationEvent function during INPUT_GAMEPAD_CONNECT. prevReady doesn't need to be set to false or true in INPUT_GAMEPAD_DISCONNECT because when disconnection happens it will be automatically updated at the end of the loop (line 4167)

@raysan5 raysan5 closed this Jan 5, 2026
@ssszcmawo ssszcmawo deleted the fix/gamepad_connection branch January 5, 2026 20:12
@ssszcmawo ssszcmawo restored the fix/gamepad_connection branch January 5, 2026 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants