Since c2 is multi input.compatible, consider searching the api of the controller engine / driver.
I'm looking for 360's button list. Apparently the index is well known according to gamepad plugin description.
Edit@ NVM, I've figured it out with programming the output as txt. Still would be nice to have a list. Index numbers don't change.