'PYGAME managing different joysticks with different "circuit mappings"
As the title suggests I'm working with 4 players, that is 2 pairs of controllers: 1 pair of brand A and 1 pair of brand B. When I perform a test to check for button output, all their native mapping is the same except for a few keys. My problem stems from the fact that in the event section of my code, where I have to execute commands based on which key is pressed, I would like to differentiate which mapping to use based on the joystick.name. I'm stuck because there is no event.joy.name, for instance, or some other way to differentiate between joystick brand A and B, and therefore their respective "native mapping".
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
