ArturSpirin/pyPS4Controller

trigger event connect/disconnect

KrifaYounes opened this issue · 4 comments

Hello,
I want to send a signal to my mobile application to know if the ps4 controller has started or has disconnected without touching any button.
is there a trigger that lets you know?

Hi @KrifaYounes ,
There is currently no such triggers but it can be easily added I think. I'll convert this into a feature request and see what I can do.

@KrifaYounes Try it now in version pyPS4Controller 1.1.9 and let me know. I've also added how to use it here https://github.com/ArturSpirin/pyPS4Controller#registering-callbacks

Ok thanks i will try

it work fine
thanks a lot