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
I've got everything working great except one thing: how do we check if a controller is disconnected? Right now I'm calling JslConnectDevices() and JslGetConnectedDeviceHandles() every frame to see if there have been any changes to the device. However, this seems to cause problems with the DS4 lightbar, as each time I call those functions the color gets turned off.
Basically I'm looking for a way to call something like JslIsControllerActive(int deviceID), and if that returns false I'll call JslConnectDevices and JslGetConnectedDeviceHandles to find a new device.
Thanks, this library is super awesome!!
Michael
The text was updated successfully, but these errors were encountered:
Hi Michael! Thanks for checking it out. It's best not to be reconnecting every frame, but you could have a time-out on your end. If the call-back for a particular device hasn't been called for too long, then do the reconnecting.
Hey again,
I've got everything working great except one thing: how do we check if a controller is disconnected? Right now I'm calling JslConnectDevices() and JslGetConnectedDeviceHandles() every frame to see if there have been any changes to the device. However, this seems to cause problems with the DS4 lightbar, as each time I call those functions the color gets turned off.
Basically I'm looking for a way to call something like JslIsControllerActive(int deviceID), and if that returns false I'll call JslConnectDevices and JslGetConnectedDeviceHandles to find a new device.
Thanks, this library is super awesome!!
Michael
The text was updated successfully, but these errors were encountered: