Skip to content
This repository was archived by the owner on Jul 12, 2023. It is now read-only.

Comments

Fix button down and analog move events#43

Open
av4625 wants to merge 1 commit intoaed3:masterfrom
av4625:master
Open

Fix button down and analog move events#43
av4625 wants to merge 1 commit intoaed3:masterfrom
av4625:master

Conversation

@av4625
Copy link

@av4625 av4625 commented Mar 7, 2022

There was a bug where the button_up events were setting the button down event variables.

This is a small change to fix that and also only trigger an event if the analog stick is in a different location from where it was the last time. The current code checks if the stick isn't 0. The stick being at 0 could be an event if the previous location of the stick wasn't 0.

This fixes the behaviour described here: #35

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants