flok / pydualsense

control your dualsense controller with python
MIT License
118 stars 32 forks source link

Detect disconnected controller #48

Open mwlock opened 1 year ago

mwlock commented 1 year ago

Hi, quick question!

How can one detect a disconnected controller?

sametkesici commented 1 year ago

@flok There is an uncaught exception occurring when gamepad is unplugged, and it is causing the issue for me.