If you haven’t already infered from the title, I’d like to suggest an addition to the bge.events list.
In particular, I’d like to see joystick buttons added there, as it seems logical that they would be there.
bge.events.JOY1BUTTON1 bge.events.JOY1BUTTON2 ... bge.events.JOY1HATUP bge.events.JOY1HATDOWN
There are a maximum of eight joysticks, each with an indefinite number of buttons and hats, and this the API is an indeterminate size. This is why it isn’t already there?
But: There is the API for the mouse there even if one isn’t plugged in, and even if it doesn’t have a scrollwheel.
So I see no reason why you can’t accommodate for all possible buttons, hats, axis etc. Or is the joystick protocool so good that a joystick can have an infinite amount of hats and buttons? In which case, sensible values can be drawn, such as a maximum of 5 hats and 30 buttons are supported by blender. Something that will never sensibly be exceeded. This will make the documentation huge, except that you can shorten it to say that these are the numbers that change under these situations. No need to list every case.
Why I want it implemented:
To standardize. Making a keymapper is ridiculously easy for a moderately good programmer, by creating a dict of ‘forwards’:‘WKEY’, ‘shoot’:‘LEFTMOUSE’, and some relatively simple code (EventToString(event) mainly). This is perfect for mouse and keyboard, but does not work for joystick because it is completely different, and requires a whole bunch extra code specific to joysticks.
Also, mouse button 4 and 5 would be great