You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.
I was trying to use the event callback method that this library provides.
I have a callback that gets called when the controller is connected and this works fine.
I then have a callback for controller events void event().
event seems to get called over and over as fast as it can even when I am not touching the controller. This doesn't seem correct?
The button_down and button_up events don't behave properly either. When I press the circle button with the code below. Nothing happens. When I let go of the button Down gets printed. Then after a ~second multiple Up's will get printed. I would expect one Down to get printed and one Up. Also multiple ups get printed just after the controller connects before touching any buttons.
Code Change in Library
I had to change a define or the library wouldn't build.
In ps4_int.h I changed: #define CONFIG_IDF_COMPATIBILITY IDF_COMPATIBILITY_MASTER_21165ED
to: #define CONFIG_IDF_COMPATIBILITY IDF_COMPATIBILITY_MASTER_21AF1D7
Issue
I was trying to use the event callback method that this library provides.
I have a callback that gets called when the controller is connected and this works fine.
I then have a callback for controller events
void event()
.event
seems to get called over and over as fast as it can even when I am not touching the controller. This doesn't seem correct?The
button_down
andbutton_up
events don't behave properly either. When I press the circle button with the code below. Nothing happens. When I let go of the buttonDown
gets printed. Then after a ~second multipleUp
's will get printed. I would expect oneDown
to get printed and oneUp
. Also multiple ups get printed just after the controller connects before touching any buttons.Code Change in Library
I had to change a
define
or the library wouldn't build.In
ps4_int.h
I changed:#define CONFIG_IDF_COMPATIBILITY IDF_COMPATIBILITY_MASTER_21165ED
to:
#define CONFIG_IDF_COMPATIBILITY IDF_COMPATIBILITY_MASTER_21AF1D7
Code
Output
I connected the controller. Then pressed and released circle 5 times.
The text was updated successfully, but these errors were encountered: