Hotkeys not working since update to 3.9

Installing ARpiCADE for the first time? Having issues? Check here first for solutions and tips on installing.

Moderator: dee2eR

Post Reply
cathaldub
Community Member
Community Member
Posts: 23
Joined: Fri Aug 25, 2017 7:29 am
Location: Ireland

Hotkeys not working since update to 3.9

Post by cathaldub » Fri Jun 05, 2020 8:29 am

I'm sure I read a fix for this but can't find it in the search
P1+BTN1 for credit, P1 for 3 seconds to esc, etc

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

Re: Hotkeys not working since update to 3.9

Post by dee2eR » Fri Jun 05, 2020 8:46 am

That's odd. I don't remember hearing of any issue with it before... Is it everywhere or just a particular emulator?
Have you edited /boot/hotkeys.ini or /boot/run.sh at all? They should be the only files effecting the hotkeys operation.

cathaldub
Community Member
Community Member
Posts: 23
Joined: Fri Aug 25, 2017 7:29 am
Location: Ireland

Re: Hotkeys not working since update to 3.9

Post by cathaldub » Fri Jun 05, 2020 7:35 pm

Oddly enough they work on the SNES Emu. I’m gonna have another look now.

cathaldub
Community Member
Community Member
Posts: 23
Joined: Fri Aug 25, 2017 7:29 am
Location: Ireland

Re: Hotkeys not working since update to 3.9

Post by cathaldub » Fri Jun 05, 2020 7:43 pm

This is what my hotkeys.ini file looks like

Code: Select all

# Hotkeys config file
# Only player 1 controls can be used at this time
# To disable a shortcut delete the line, do not comment it out
# Limited joystick axis support as follows
# Joystick down = Y1,  joystick right = X1,  NO SUPPORT FOR UP OR LEFT
# JAMMA buttons map to Xbox button names as follows 
# B1 = A,  B2 = B,  B3 = BLACK,  B4 = Y,  B5 = X,  B6 = WHITE,  Start = START
#examples of other options available
# add a coin 2 shortcut
START+B=key:KEY_6
# use P1 Start + Button 3 to exit emulators
# START+BLACK=key:KEY_ESC

[ui-axismap]
START+Y1=key:KEY_P

[ui-buttonmap]
START=BTN_START:KEY_ESC:5000
START+A=key:KEY_5
START+WHITE=key:KEY_F1

# EOF #
and my run.sh

Code: Select all

#! /bin/bash

## Setup dispmanx for SDL1.2
export SDL_DISPMANX_IGNORE_RATIO=1
clear

## Redirect audio to RPi analog output rather than HDMI
#amixer cset numid=3 1

## Now loading message
/boot/nowloadn.sh

## Start hotkeys
hotkeys start

## If you want to auto load a game put it here
#/boot/launchers/advmame.sh simpsons >/dev/null 2>&1

## Scan roms for Attract-Mode list
## accepts 1 command 'all' 'arcade' 'console' 'acnoporn' or 'allnoporn'
bash /boot/launchers/ScanRoms_V007.sh allnoporn >/dev/null 2>&1

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

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

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

## Restore terminal keyboard output for a usable terminal
stty sane

## AdvanceMenu frontend 
## NOTE: AdvMenu is now considered  depreciated so the config file is out of date, some config will be required to use AdvMenu
## If you want to use AdvanceMenu disable all romscanning scripts as they are not used by AdvanceMenu
#/home/pi/.advance/advmenu >/dev/null 2>&1


cathaldub
Community Member
Community Member
Posts: 23
Joined: Fri Aug 25, 2017 7:29 am
Location: Ireland

Re: Hotkeys not working since update to 3.9

Post by cathaldub » Fri Jun 05, 2020 7:55 pm

Weird, I just hashed this out and it's fine now
START+B=key:KEY_6
to
#START+B=key:KEY_6

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

Re: Hotkeys not working since update to 3.9

Post by dee2eR » Sat Jun 06, 2020 1:40 am

good stuff, that was the only thing I could see that seemed odd. Glad it fixed it.

If you do want the extra coin shortcut it needs to be added to the [ui-buttonmap] section.

Post Reply