Control Mapping ! HELP

Questions and tweaks for Attract-Mode on ARpiCADE.

Moderator: dee2eR

dee2eR
Inventor
Inventor
Posts: 1857
Joined: Tue Aug 22, 2017 2:07 pm

Re: Control Mapping ! HELP

Post by dee2eR » Mon Jul 22, 2019 11:34 pm

The start+right shortcut can be disabled in /boot/hotkeys.ini by deleting the line it is on. It's worth backing up your SD card or at least making a copy of hotkeys.ini first as a mistake in this file can break the hotkeys entirely (so you won't be able to exit games or use any other shortcut you use). You cannot 'hash out' the line to disable things in hotkeys.ini due to the way it works.

Bloodybone
Community Member
Community Member
Posts: 10
Joined: Mon Jul 22, 2019 8:18 pm

Re: Control Mapping ! HELP

Post by Bloodybone » Wed Nov 20, 2019 8:59 pm

i delete the hot keys all together, i re-map (esc key or escape game back to main menu) to another button and them mount that button to front of the game. so i have that fig out. however even delete hotkey file does not solve this problem it still allows the player to get into that menu and change my maping.

dee2eR
Inventor
Inventor
Posts: 1857
Joined: Tue Aug 22, 2017 2:07 pm

Re: Control Mapping ! HELP

Post by dee2eR » Thu Nov 21, 2019 4:08 am

Edit run.sh to disable the hotkeys entirely, you just need to 'hash out' the line that launches the hotkeys. Not sure how you did it or what will happen if you delete the hotkeys.ini file and still launch the hotkeys system in run.sh. Interesting to hear it still works when the file is deleted entirely.

If you are using Windows and haven't already done so get Notepad++ as the built in editors can break Linux files.

Bloodybone
Community Member
Community Member
Posts: 10
Joined: Mon Jul 22, 2019 8:18 pm

Re: Control Mapping ! HELP

Post by Bloodybone » Thu Jul 30, 2020 12:19 am

i deleted my hotkey file and in my Run.sh file looks like this (below). and i can still hold start and right to enter menu, can i change to esc key on keyboard instead?
I do not want to access menu from the controls, keyboard only
thank you for the help

#! /bin/bash

# Setup dispmanx for clean AdvMAME & Daphne video output this version of SDL is modified to output for
# correct scanline output at 240p
export SDL_DISPMANX_IGNORE_RATIO=1
clear

# Now loading message
#/boot/nowloadn.sh

# Start hotkeys
# hotkeys start
/boot/launchers/advmame.sh wwfwfest >/dev/null 2>&1

## Scan arcade games for Attract-Mode list
# NOTE: noPornRoms is the same as sortRoms with an extra no porn games array, only use sortRoms OR noPornRoms, NOT BOTH.
#bash /home/pi/.attract/sortRoms.sh
#bash /home/pi/.attract/noPornRoms.sh

## Scan console games for Attract-Mode list
#bash /home/pi/.attract/sortRomsConsoles.sh

## Combine gamelists into all games list for Attract-Mode
#bash /boot/launchers/servMenu.sh carccons

# Bugfix for SDL2.0 keyboard input to terminal bug for a cleaner Attract-Mode
stty -echo

# Launch Attact-Mode (games)
attract >/dev/null 2>&1

# Launch Attact-Mode (service menu)
attract -c /home/pi/.attractsm/ >/dev/null 2>&1

# Restore terminal keyboard output for a usable terminal
stty sane

## AdvanceMenu frontend
# If you want to use AdvanceMenu disable all romscanning scripts as they are not used by AdvanceMenu
# Launch advmenu
#/home/pi/.advance/advmenu >/dev/null 2>&1

dee2eR
Inventor
Inventor
Posts: 1857
Joined: Tue Aug 22, 2017 2:07 pm

Re: Control Mapping ! HELP

Post by dee2eR » Thu Jul 30, 2020 2:28 am

looks like you're on an older version of ARpiCADE, you may need to check MAMEs menus while your game is running in case the shortcut is also set up as a combo in MAME rather than correctly using the hotkey system.

'esc' is the exit game command. 'tab' is the default key for the MAME menu.

Bloodybone
Community Member
Community Member
Posts: 10
Joined: Mon Jul 22, 2019 8:18 pm

Re: Control Mapping ! HELP

Post by Bloodybone » Wed Mar 17, 2021 12:11 am

having trouble programing exit to game menu for the 78 mame. in my adv mame 106 i use the jamma service button to exit to game menu, works great. when i go to play rampage (rom under (078) it will not exit. i tried programing the ui-cancel to the jamma service button, but the game does not exit, i was thinking about adding a hot key to fix this sense it does not look like i can program an exit button under tab settings for rampage under ui-cancel.

i seen this hot key that uses the start button hold [ui-buttonmap] START=BTN_START:KEY_ESC:1500

However i don't know how to type it out to get the correct button, im using the service button input on jamma and do not need the hold button command.


any help be appreciated
thx

dee2eR
Inventor
Inventor
Posts: 1857
Joined: Tue Aug 22, 2017 2:07 pm

Re: Control Mapping ! HELP

Post by dee2eR » Tue Mar 23, 2021 4:49 am

Bloodybone wrote:
Wed Mar 17, 2021 12:11 am
having trouble programing exit to game menu for the 78 mame. in my adv mame 106 i use the jamma service button to exit to game menu, works great. when i go to play rampage (rom under (078) it will not exit. i tried programing the ui-cancel to the jamma service button, but the game does not exit, i was thinking about adding a hot key to fix this sense it does not look like i can program an exit button under tab settings for rampage under ui-cancel.

i seen this hot key that uses the start button hold [ui-buttonmap] START=BTN_START:KEY_ESC:1500

However i don't know how to type it out to get the correct button, im using the service button input on jamma and do not need the hold button command.


any help be appreciated
thx
Unfortunately at the moment the service button isn't supported by the hotkeys system. I think I could add support for it in future but I would need to nut it out...

You may have more luck with 078 if you try configuring the service button to exit RetroArch from with the RetroArch menus rather than MAMEs menus, not something I've done before though.

Bloodybone
Community Member
Community Member
Posts: 10
Joined: Mon Jul 22, 2019 8:18 pm

Re: Control Mapping ! HELP

Post by Bloodybone » Thu Mar 10, 2022 10:55 pm

ok i did something stupid, can anyone help?

i changed the way to access the button mapping on mame 78. it was original hold start and think right joystick to enter menu. now i cant remember what i changed it to. is there a file/code i can replace to get back to original setup?

dee2eR
Inventor
Inventor
Posts: 1857
Joined: Tue Aug 22, 2017 2:07 pm

Re: Control Mapping ! HELP

Post by dee2eR » Fri Mar 11, 2022 5:04 am

start+joy right sends a keyboard 'tab' press via the hotkeys system.

It's likely whatever you changed needs to be put back to 'tab'. Unfortunately not knowing what you have changed it's hard for me to suggest a fix - RetroArch control system has layers of overriding settings. I think you can open the MAME menu from the RetroArch menu quick menu, that maybe a way to get the MAME menu open to fix it if that's the issue.

If you don't already do so I recommend making a backup image when you have things the way you like, that way if anything like this happens in the future it's easy to restore.

Post Reply