Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem Supermodel.ini keyboard works only with characters, but no ALT, SHIFT, CTRL, SPACE, buttons working #228

Open
Giandj opened this issue Feb 18, 2025 · 1 comment

Comments

@Giandj
Copy link

Giandj commented Feb 18, 2025

On myLinux Mint 22.1 XFCE 64 bit the supermodel emulator works fine, but
in my "Supermodel.ini" I have tryed to reconfigure standard KEY_A, KEY_D, KEY_S, KEY_F, for fighting games, to act instead with these SDL commands:

KEY_LCTRL ("Left Control" Key , on my keyboard)
KEY_LALT ("Left Alt" Key , on my keyboard)
KEY_LSHIFT ("Left Shift" Key , on my keyboard)
KEY_SPACE ("Spacebar" Key , on my keyboard, this works!)

ORIGINAL (supermodel.ini) WORKING:
; Fighting game buttons
InputPunch = "KEY_A,JOY1_BUTTON1"
InputKick = "KEY_S,JOY1_BUTTON2"
InputGuard = "KEY_D,JOY1_BUTTON3"
InputEscape = "KEY_F,JOY1_BUTTON4"
InputPunch2 = "JOY2_BUTTON1"
InputKick2 = "JOY2_BUTTON2"
InputGuard2 = "JOY2_BUTTON3"
InputEscape2 = "JOY2_BUTTON4"

MODIFIED BY ME (supermodel.ini), NOT WORKING :
; Fighting game buttons
InputPunch = "KEY_LCTRL,JOY1_BUTTON1"
InputKick = "KEY_LALT,JOY1_BUTTON2"
InputGuard = "KEY_LSHIFT,JOY1_BUTTON3"
InputEscape = "KEY_SPACE,JOY1_BUTTON4"
InputPunch2 = "JOY2_BUTTON1"
InputKick2 = "JOY2_BUTTON2"
InputGuard2 = "JOY2_BUTTON3"
InputEscape2 = "JOY2_BUTTON4"

Where is my error ?, maybe KEY_LCTRL and other SDL key command does not exists ?

Another question:
Is there a SDL methot to map ESC key (the "exit" from emulator), to another button (for example, if i want to press JOY10 ?, for exiting emulation),
in "supermodel.ini" ?

@Giandj
Copy link
Author

Giandj commented Feb 18, 2025

Hi, I have solved myself (keyboard mapping) problems:
The correct method (SDL SINTAX) for mapping keyboard special characters like SHIFT, CTRL, ALT, is to delete the "L" used before by me from supermodel.ini file:

MODIFIED BY ME (supermodel.ini), CORRECT, NOW IS WORKING !!! :
; Fighting game buttons
InputPunch = "KEY_CTRL,JOY1_BUTTON1"
InputKick = "KEY_ALT,JOY1_BUTTON2"
InputGuard = "KEY_SHIFT,JOY1_BUTTON3"
InputEscape = "KEY_SPACE,JOY1_BUTTON4"
InputPunch2 = "JOY2_BUTTON1"
InputKick2 = "JOY2_BUTTON2"
InputGuard2 = "JOY2_BUTTON3"
InputEscape2 = "JOY2_BUTTON4"


THE ONLY OPEN QUESTION IS:
HOW TO MAP A DIFFERENT "ESC" KEY TO "EXIT FROM EMULATOR" ?
(for example: using "Button10", of an "arcade stick" to close emulator, instead of "ESC" on the keyboard)

I don't think this RE-map is possible to do, without modyfing supermodel source code....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant