c# - How can I use XInput in Python ()WITHOUT PYGAME) to sniff button presses on the controller? -


i've been scouring forums days trying find way sniff xinput xinput controller. haven't found way detect if button pressed down , forum posts analog sticks. want achieve goal without pygame or bulky, external modules. need able detect when a, b, rb (right bumper) , d-pad buttons pressed on controller , when pressed, run code. able distinguish between button pressed, not fact button has been pressed because need convert these inputs vk codes add controller support game (i know there applications out there want make 1 in single script , less bulky.)

also, if easier in language python, please explain anyway. said in python because know language more others. also, have quite little coding experience, keep in mind.

take @ github repo:

https://github.com/r4dian/xbox-360-controller-for-python

it seems contain want. think using lib simplest way make controller work python.


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -