piborg / Gamepad

A simple library for getting game controller and joystick inputs into Python in Linux.
MIT License
101 stars 27 forks source link

D-Pad Button Vs Axis Support #8

Open autonomousTurtle opened 2 years ago

autonomousTurtle commented 2 years ago

I am using the XBox adaptive controller to make a robot for someone who has limited motion. This controller has two buttons and a D-Pad. The d-pad shows up as an axis, but the value always remains 0 regardless of if it is pressed or not. Is there a way to configure the D-pad to work like a button press rather than an analog axis?

The script I started with is the unmodified AsyncExample.py.

Thank you!