dflemstr
It's a ball.
I read the following:
Situation:
Now, before you tell me; yes it is of course possible to work around this behavior, but not all of the time, and not if you want to avoid to subclass (in the case of C++) every darn text box you use just to intercept that keypad press.
So, I propose that we change those mappings pronto. Everyone who's using some kind of widget toolkit will be very happy, and those who don't (aka use SDL) won't notice the change.
Here's what I had in mind:
Is this possible?
...and thought: Those mappings are OK, I guess, but they'll give me problems (and probably others as well).notaz said:yes, and game buttons also trigger as keypad 1-4, select/start as ctrl/alt, L/R as additional mouse buttons (not sure about those 2, DjWillis is doing keymap for them).PokeParadox said:Does the Dpad still double up as the cursor keys?
Situation:
- I'm trying to create a simple app in GTK/Qt.
- I do NOT have access to the SDL_input API so I can't use the macros defined in SDL (...or can I? What, then, is the joystick ID and can the buttons be mapped to custom keys?)
- I create a text field of some sort or another (It could happen once or twice..., right?)
- I want to put that text field in a dialog box that should close with accepted status when the primary selection button is pressed on the Pandora (Which button is that per default BTW? The top one or the right one?)
- I set a "key trigger" (name depends on API) on the window to do what I want when the "Keypad 1" key is pressed.
- I run my brand new application, and lo and behold, a "1" appears in the text field once I press the select button.
Now, before you tell me; yes it is of course possible to work around this behavior, but not all of the time, and not if you want to avoid to subclass (in the case of C++) every darn text box you use just to intercept that keypad press.
So, I propose that we change those mappings pronto. Everyone who's using some kind of widget toolkit will be very happy, and those who don't (aka use SDL) won't notice the change.
Here's what I had in mind:
- Top button: The Yes key (0x01010001 in Qt) OR the Context1 key (0x01100000)
- Right button: No (0x01010002) OR Context2 (0x01100001)
- Bottom button: Context3 (0x01100002) (change this and the next key if Yes/No is chosen above)
- Left button: Context4 (0x01100003)
Is this possible?
Last edited by a moderator: