You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.
What is the current behavior?
Using a gamepad to assign buttons / axis crashes the program.
What is the expected behavior?
The program should detect the button press on gamepad and then I should be able to use that button during the game.
Tell us the steps to reproduce the bug, and if possible share a minimal demo of the problem.
Run the program
Bring up the Input mapper with ESC
Select Custom profile
Press any Change button
Press a button / axis on any gamepad
The game crashes
Other information
Errors: Invalid get index 'scancode' (on base: 'InputEventJoypadButton'). (pressing a button) Invalid get index 'scancode' (on base: 'InputEventJoypadMotion'). (using an analog stick)
The program expects a keyboard input and assumes that we're passing input events that contain the scancode variable, which doesn't exist on gamepad. Instead, button_index should be used for buttons. Analog sticks however are a bit tricky, because one axis represents both directions, so we need to use both axis and value used.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm submitting a...
What is the current behavior?
Using a gamepad to assign buttons / axis crashes the program.
What is the expected behavior?
The program should detect the button press on gamepad and then I should be able to use that button during the game.
Tell us the steps to reproduce the bug, and if possible share a minimal demo of the problem.
Other information
Errors:
Invalid get index 'scancode' (on base: 'InputEventJoypadButton').
(pressing a button)Invalid get index 'scancode' (on base: 'InputEventJoypadMotion').
(using an analog stick)The program expects a keyboard input and assumes that we're passing input events that contain the
scancode
variable, which doesn't exist on gamepad. Instead,button_index
should be used for buttons. Analog sticks however are a bit tricky, because one axis represents both directions, so we need to use both axis and value used.The text was updated successfully, but these errors were encountered: