Jump to content

All my products and services are free. All my costs are met by donations I receive from my users. If you enjoy using any of my products, please donate to support me. My bare hosting costs are currently not met so please consider donating by either clicking this text or the Patreon link on the right.

Patreon

Change ESC in GameEx when not using MAME emu?


Recommended Posts

Posted

Hi

I'm launching my C64 games with WinVice throught GameEx. However, the ESC key is critical to C64 games but pressing it takes me back to the GameEx frontend. With MAME, I can press TAB and bring up the menu that allows me to assign keys for the UI but this menu isn't available elsewhere. How can I change the function of the ESC key to be something else, like ALT+F4?

Thanks

Slink

Posted

There are a few methods, one is to use an Autohotkey script to launch before the emulator that maps the keys the way you want. (Do a search on this forum for "Autohotkey" for more info).

The second method is to use Resource Hacker on the WinVice executable. Do a search for the VK_ESCAPE mapping and swap it with another virtual key mapping.

The third method uses the ConfigFile=<name> option under [Emulator_X] in the GameEx.ini file. You place the file <name> in the CONFIG\EMULATORS directory and use the following options...

MapEscape=False

KeysToSendOnExit=%{F4}

The above will disable the escape key for exit, and send ALT-F4 to exit.

Posted

Thanks for the reply. I went for option 3 as it seemed the easiest but it doesn't appear to be working. I just pasted in what you put to a WinVice.ini file I created in the config\Emulators folder and pointed to it in the GameEx.ini but no joy. The log doesn't appear to show entries for any advanced config files. Is there anyway to check that it's being used. Has the syntax changed in this latest version perhaps?

Actually, I think it is using the ini file because ALT+F4 now exits me from WinVice and back to GameEx, the trouble is, ESC does aswell! MapEscape=FALSE isn't working.

Posted

Hi slinkofff. This does work. I use this method myself. Have you set MapKeys=False in the main config aswell as MapEscape=False

in the advanced config.

J.

Posted

I believe you, so what am I doing wrong here?

Contents of Emu section in GameEx.ini

[Emulator_1]

Enabled=True

StartPageName=Commodore 64 Games - Highlights

TitleText=C64

StartPageLogo=C64

RomFilter=

RomsInFolders=True

ROMPath=S:\My Documents\My Games\ROMS\C64

SnapPath=

WorkingPath=C:\Program Files\Vice C64 Emu

MapKeys=False

WaitBeforeKeys=

SendKeys=

ReplaceDash=True

ReplaceUnder=True

Capitals=True

RemoveBrackets=True

AlsoLaunch=

ShowDesktop=False

Debug=False

MapFile=C:\Program Files\GameEx\CONFIG\C64 Map File.map

OLDatZip=

Command=x64.exe -fullscreen -autostart "[ROMPath]\[RomFile]"

TitlePath=

BoxPath=

LaunchBefore=

LaunchAfter=

CartPath=

configFile=C:\Program Files\GameEx\CONFIG\EMULATORS\WinVice.ini

ExcludedFiles=

CustomBackground=

PlayMusic=

PCGame=

DATABASE=

Contents of winvice.ini:

MapEscape=False

KeysToSendOnExit=%{F4}

Posted

I think this is it.

Change KeysToSendOnExit=%{F4}

To KeysToSendOnExit=%x.

If it is winvice you are using . Then it exits using ALT and x not ALT and F4.

J.

Posted

its weird, it seem to work for the first press, but then the next time ESC will take me back to GameEx. Does this happen to you?

Guest
This topic is now closed to further replies.
×
×
  • Create New...