Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

Hotkey delay & hotkey for rewind/ff conflict



  • Hi guys.

    I am using RP 4.1 and I have two questions I've been unable to find answers for.

    First, it appears that a (very) few times I manage to accidentally exit a game by pressing Start and Select. Is there a way to delay this command? Some games may require pressing Start and Select (and other hotkey combinations), therefore it would be ideal if the hotkey would need to be pressed for a second or two after it behaves as such.

    My second question is an issue that I've been having with disabling save state slot hotkeys (Select and left/right) and setting them to rewind/fast forward respectively. While I'm using the assigned action, it appears that at the same time the slot changes (concurrently). I even nullified the values except for the +0 -0 and the save state slots seem "hardwired" no matter what else I assign. Is there a way to use Select + left/right exclusively for the timing commands?

    Cheers!

    PS: binding the actions to different buttons without a hotkey is out of question, as I'm using SNES and NES controllers on my (two) setups


  • Global Moderator

    @matchaman said in Hotkey delay & hotkey for rewind/ff conflict:

    First, it appears that a (very) few times I manage to accidentally exit a game by pressing Start and Select. Is there a way to delay this command? Some games may require pressing Start and Select (and other hotkey combinations), therefore it would be ideal if the hotkey would need to be pressed for a second or two after it behaves as such.

    no, but that's not a bad idea! might be worth suggesting it on https://forums.libretro.com/t/development-suggestions/2646/208



  • Thanks, I'll post it there :)

    As for my second inquiry, is there any hope? I don't understand why the hotkeys can't be changed.



  • Bumping this a bit because I finally found a solution to the second part, might help others :)

    There is a .cfg file with the name of the controller located in /opt/retropie/configs/all/retroarch/autoconfig

    It ignores any retroarch.cfg, therefore I was having double button assignements. Very self explanatory once opened.

    As for the accidental exits, for now I assigned exit with hotkey/select + down which is far less possible to be needed in a game.

    Even so, I'd like to know if there is a way to have a game exit confirmation screen to avoid any further chances of "accidents" (either on RA or ES).


  • administrators

    we technically have a hotkey delay already. We could increase it (it's not noticeable currently, but is needed to workaround coin input issues) - it's a functionality change though which usually means many won't like it :)

    This was discussed with retroarch, and it sounded as though if i made a configurable option for it they would accept it (our current delay is hardcoded). I don't have free time to do this currently though and I believe they didn't like the way we timed it currently too (just a frame timer). If more people ask for it, they may consider adding it themselves.


  • Global Moderator

    I've run into this with a couple of emulators and ports here and there. Whenever the situation is so bad that it hurts basic functionality, I add a delay with a xboxdrv mapping. Using the xboxdrv 'back' button (a stand-in for 'select') as an example, the addition of a 325 ms delay (my personal preference) would look like:

    --buttonmap back^delay:325=back
    


  • Thanks! It appears that the solution for now is to use Select & Up for exiting a game. It's not used by any game that I know of.



  • Hello @BuZz , I'd like to change the delay value that is hardcoded right now.
    In my custom design, keys needed to jump back to the main menu are really close,
    I'm experiencing players constantly quitting games by mistake.

    Can you point me to where the value is hardcoded in the sources?


  • Global Moderator

    @bomba said in Hotkey delay & hotkey for rewind/ff conflict:

    I'm experiencing players constantly quitting games by mistake.

    Which players ? Please open an new topic and explain your problem, don't bump 2 years old topics.



Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.