zeth / inputs

Cross-platform Python support for keyboards, mice and gamepads
BSD 3-Clause "New" or "Revised" License
269 stars 87 forks source link

inputs does not recognise a Joystick device, UnpluggedError: No gamepad found. #26

Closed nickums closed 6 years ago

nickums commented 6 years ago

My Joystick is connected but only devices seen are Mouse and Keyboard, and get_game pad fails. (Winows10 Python3.6) Traceback (most recent call last): File "C:\Python\Python36\lib\site-packages\inputs.py", line 2711, in get_gamepad gamepad = devices.gamepads[0] IndexError: list index out of range During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:/Python/Dhruve and me/Pygame/device_inputs.py", line 22, in events = get_gamepad() File "C:\Python\Python36\lib\site-packages\inputs.py", line 2713, in get_gamepad raise UnpluggedError("No gamepad found.") inputs.UnpluggedError: No gamepad found.

zeth commented 6 years ago

Which Joystick is it? Is it possible to map it to an Xbox controller?

nickums commented 6 years ago

Evidently I need an actual gamepad, not a simple joystick, to use this package.