Button Mapping in Terminal/Ported Games

Kernel, Main, Utilities & Applications, Miscellaneous Devices.
jayp76
Posts: 30
Joined: Mon May 25, 2020 8:30 am
Has thanked: 1 time
Been thanked: 3 times

Button Mapping in Terminal/Ported Games

Unread post by jayp76 »

I have a question regarding the gamepad button mapping inside the terminal or the ported linux games like Scummvm.
It seems that the menu back button is active in terminal mode and acts like escape.
If your buttons are mapped like for e.g SNES and use "A" as conform/OK and "B" as Menu back, then ScummVM exits when pressing "B".
Is this normal behaviour or schould this only be active when the menu is open?

Locutus73
Core Developer
Posts: 51
Joined: Mon May 25, 2020 9:55 am
Has thanked: 1 time
Been thanked: 8 times

Re: Button Mapping in Terminal/Ported Games

Unread post by Locutus73 »

It is normal, whenever the terminal is open, Main MiSTer injects keystrokes on joypad inputs, those are useful for dialog based text user interfaces: the d-pad maps to arrow keys, A=Enter, B=Esc and IIRC L and R map to PgUp and PgDown.
Main MiSTer has no (easy) way to know if it launched a script or ScummVM.

Regrards.

Locutus73
jayp76
Posts: 30
Joined: Mon May 25, 2020 8:30 am
Has thanked: 1 time
Been thanked: 3 times

Re: Button Mapping in Terminal/Ported Games

Unread post by jayp76 »

Thanks for the explanation. It is a bit counterintuitive. Either i live with it or i change my button mapping for menu ok and back.
Post Reply