Jump to content
LaunchBox Community Forums

Retroarch Save/Load States button re-mapping


Crush

Recommended Posts

Normally Retroarch allows you to bind the Save/Load State buttons to keyboard or to player 1 controller only. You can't map these keys to, let's say buttons on controller 3 or 4.

Here's a AHK script to let you use another controller to send the default Save/Load State keys to Retroarch (in my case i use buttons 18 & 19 on my 4th controller for save/load states).

(If you changed the default keys from F2/F4, modify the script accordingly)

 

; Load State

4Joy18::
If GetKeyState("4Joy18")
{
   SetKeyDelay, -1, 110
   Send {F4}
}
Return


; Save State

4Joy19::
If GetKeyState("4Joy19")
{
   SetKeyDelay, -1, 110
   Send {F2}
}
Return

Edited by Crush
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...