Zuzu-Typ / XInput-Python

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

Added a class to manage asynchronous event handling #2

Closed texx00 closed 4 years ago

texx00 commented 4 years ago

With the GamepadThread and the handler class it is now possible to use callbacks instead of direct polling for the events. The thread will poll the original library and use the callback only when necessary. In this way it is possible also to run independent code in the main thread. There are also few additional features like event filtering. Added also the related documentation

texx00 commented 4 years ago

Hi @Zuzu-Typ... Anything about this?

Zuzu-Typ commented 4 years ago

I'm sorry, my notifications were turned off for some reason.

I'll adjust the code a bit here and there and commit it to master.

Thank you very much for your great contribution!