Have unidentified gamepads expected standard output?

Hello there. I feel I’m making a silly question here since if a gamepad is unknown could be anything:

I know I could get raw data from an unidentified gamepad. But if I make a module to get input bindings for all those gamepads that are unidentified, could I expect similar buttons like ‘right pad, right button’ to be the same number from action.gamepad_buttons for most of gamepads?

Hello,

If I understand it correctly, by module you mean an lua module for parsing raw data right? Well in this case you cannot assume that the button indexes of unidentified gamepads will match. What you can do though is to use the gdc tool to create an entry for each of yours unidentified controllers and add them to a custom deafult.gamepadsfile. This way your hardware will now be identifiable and correctly mapped to the standard inputs.

Yes, that’s what I meant :sweat_smile: Thank you for saving me future headaches!