Author Topic: Joy2Key  (Read 366 times)

clockman

  • Full Member
  • ***
  • Posts: 57
    • View Profile
Joy2Key
« on: December 18, 2019, 04:08:03 PM »
I'm using only attractmode and mame, daphne, and daphne singe on my cabinet. Is there any way to launch joy2key when i launch daphne then close it when i exit daphne using attractmode?

rand0m

  • Sr. Member
  • ****
  • Posts: 322
    • View Profile
Re: Joy2Key
« Reply #1 on: December 18, 2019, 07:48:00 PM »
I'm using only attractmode and mame, daphne, and daphne singe on my cabinet. Is there any way to launch joy2key when i launch daphne then close it when i exit daphne using attractmode?

I am using AntiMicro, a similar app, for some systems. If you are on Win you can use something like this in emulator.cfg:
Code: [Select]
args                /c cd "D:\Antimicro" & start "" antimicro.exe --hidden --profile "D:\Antimicro\Antimicro Profiles\[name].amgp" & start "" /wait "[romfilename]" & call "D\Antimicro\exit_antimicro.bat"
This will start the app when you start a game and end it when quitting, the exit_antimicro.bat is simply "taskkill /IM /F antimicro.exe" to end the process. Arguments for joy2key will differ.

progets

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1041
    • View Profile
Re: Joy2Key
« Reply #2 on: December 19, 2019, 12:22:10 AM »
I haven't used joy2key recently but it works well.

Code: [Select]
Usage:
JoyToKey [-r] [profile]
-r
In case JoyToKey program is already running, it'll send a message to the running instance and forces it to refresh the list of joystick devices. This command line argument can be used for creating a shortcut to detect newly connected joysticks.
profile
JoyToKey will be started with the specified profile. In case JoyToKey program is already running, the specified profile name will be sent to the running instance and the active profile will be switched. This command line argument can be used for creating a shortcut for switching the profile.

You can do this many different ways...
1. use the emulators files to modify the command line like rand0m suggests with the command line option mentioned above
2. run a script when launching AM to include joy2key with a default (no setting profile) and then create a profile based on the daphne.exe running with your controls. then use the AM exit option to kill joy2key.
3. create a .bat file to launch your Daphne games to include the command line options mentioned above and use it in you emulator file

The best choice will depend on your needs/preferences and OS (I think you're running Windows).

P.S. I used joy2jey with a differnet FE and I think you might need the registered/paid version to remove the nag screens but I'm not sure.

P.P.S.  I don't run Daphne in my setup but I find many people use keymapper programs when they aren't needed. I also find that people use the "working directory" and "exit hotkey" settings in AM when they aren't needed which can lead to problems. Always configure your working directory, controls and exit option in the emulator when possible (95% of the time). If at all possible, avoid any unnecessary settings and options in the FE.
« Last Edit: December 19, 2019, 12:51:08 AM by progets »

clockman

  • Full Member
  • ***
  • Posts: 57
    • View Profile
Re: Joy2Key
« Reply #3 on: December 19, 2019, 10:03:35 AM »
Thanks to both of you.

placebo_yue

  • Jr. Member
  • **
  • Posts: 15
  • sup
    • View Profile
    • Instagram
Re: Joy2Key
« Reply #4 on: January 12, 2020, 07:43:26 PM »
It's easier to switch profiles by linking the emulators applications to certain profiles in joy2key itself than writing commands on the frontend. It's so easy i made profiles for every emulator to have the same "exit back to frontend" button on all of the emulators.
It would also work if you ever play the emulators without the frontend, as long as you remember to open joy2key of course, which might be cool.

clockman

  • Full Member
  • ***
  • Posts: 57
    • View Profile
Re: Joy2Key
« Reply #5 on: July 04, 2020, 08:01:49 AM »
It's easier to switch profiles by linking the emulators applications to certain profiles in joy2key itself than writing commands on the frontend. It's so easy i made profiles for every emulator to have the same "exit back to frontend" button on all of the emulators.
It would also work if you ever play the emulators without the frontend, as long as you remember to open joy2key of course, which might be cool.
Can you explain how or do a video?

hermine.potter

  • Hero Member
  • *****
  • Posts: 550
    • View Profile
Re: Joy2Key
« Reply #6 on: July 04, 2020, 09:12:07 AM »
AM Version : 2.6.1
Input : Mad Catz Brawlstick; Mouse; Keyboard; Xbox360 Wireless
Cabinet : Yes
OS : Windows10 Pro
System : Dell Precision T3500 ; Intel X5650 ; 12GB RAM