PS4-esp32 icon indicating copy to clipboard operation
PS4-esp32 copied to clipboard

Fix button down and analog move events

Open av4625 opened this issue 3 years ago • 0 comments

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

av4625 avatar Mar 07 '22 19:03 av4625