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
While working on a script, I needed to turn off the controller via holding the DS4 PS button, this was a problem because even with the controller off it will still register the button as being held and end up conflicting with other button pushes done via combos. I tried using the turn_off function but the issue still persisted, I thought about using get_battery to determine if the controller was turned off and using set_val(PS4_PS, 0) in the main loop but realized that get_battery will return 10 by default instead of returning 0 for off, I ended up using get_ptime and set_val as a final solution but it got me thinking about some possible new functions:
A function to check if a controller is turned off or perhaps make get_battery return 0 for off and 10 for fully charged.
A function that can be called once to reset a button state for when the controller is turned off.
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: