[Question] Button mapping in Terminal/Ported Games

Kernel, Main, Utilities & Apps, Misc Devices
jayp76
Posts: 12
Joined: Mon May 25, 2020 8:30 am

[Question] 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
Posts: 46
Joined: Mon May 25, 2020 9:55 am

Re: [Question] 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: 12
Joined: Mon May 25, 2020 8:30 am

Re: [Question] 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