Zuzu-Typ / XInput-Python

Simple access to the DirectX input API for Python
zlib License
28 stars 5 forks source link

Bugfix zerodivisionerror #1

Closed texx00 closed 4 years ago

texx00 commented 4 years ago

By leaving the controller's sticks at 0 an exception was thrown during the "direction" attribute calculation due to the division by 0.

Zuzu-Typ commented 4 years ago

Good find!

I guess my controller just doesn't like the center..

Thanks for your contribution (: