Jump to content
LaunchBox Community Forums

Joytokey and rocketlauncher causing BigBox to lose focus


elements604

Recommended Posts

Hello, I have joytokey profiles setup with each of my rocket launcher systems. When I launch a system through BigBox it loads the correct profile and everything works correctly. When I close the game back into BigBox, rocket launcher loads the front end profile, which causes big box to lose focus. This means I cant control big box again unless I physically click on the screen with my mouse.

Anyone know what is causing this issue? I tried not having a front end profile and using BigBox built in controller settings, but then what happens is rocket launcher does not switch profiles correctly when launching another system.

I have tried enabling restore and click front end on exit in rocket launcher, however it looks like rocket launcher loads the front end first, then switches the joytokey profile to the front end profile which causes bigbox to lose focus. 

I have everything working in hyperspin, however would really like to switch over to BigBox and this is the main thing stopping me.

Edited by elements604
Link to comment
Share on other sites

  • 1 year later...

Hi, i just found a good solution!!!
Original post:

Open your RocketLauncher\Lib\Keymapper.ahk, there's the following code, my additions are in red.

RunXpadder(keymapperPath,keymapperExe,ProfilesInId Order,joystickArray)
} Else If (keymapper="joy2key") OR (keymapper = "joytokey")
{ Log("RunKeymapper - Looping through controllers to find joytokey profiles for each one",5)
If (keymapperLoad_Or_Unload = "load")
Profile2Load := GetProfile(keymapper, romProfile . "\" . dbName . "|" . emuProfile . "\" . emuName . "|" . systemProfile . "\" . systemName . "|" . defaultProfile . "\_Default", keymapperLoad_Or_Unload)
Else If (keymapperLoad_Or_Unload = "unload" && keymapperFrontEndProfile = "joytokey" && !contextOnExit)
Profile2Load := GetProfile(keymapper, FEProfile . "\" . keymapperFrontEndProfileName, keymapperLoad_Or_Unload)
Else If (keymapperLoad_Or_Unload = "unload" && keymapperFrontEndProfile != "joytokey" && !contextOnExit)
Profile2Load := ; user does not have joytokey set as their FE profile choice, keeping this blank will unload joytokey
Else If (keymapperLoad_Or_Unload = "menu")
Profile2Load := GetProfile(keymapper, RocketLauncherProfile . "\RocketLauncher", keymapperLoad_Or_Unload)

RunJoyToKey(keymapperPath,keymapperExe,Profile2Loa d)
}
Log("RunKeymapper - Ended")
If (keymapperLoad_Or_Unload = "load")
Sleep, 250
If (keymapperLoad_Or_Unload = "unload" && keymapperFrontEndProfile = "joytokey" && !contextOnExit)
Send, {Click down}{Click up}

Return %FEProfile%
}

Work's PERFECT to me!!!

Link to comment
Share on other sites

On 9/10/2018 at 11:47 PM, damageinc86 said:

Well I have never used a frontend keymapper profile using joy2key through rocketlauncher since BigBox can use any of my controllers plugged in to navigate with.  What if you just mapped the controls in bigbox for a controller, and then delete your frontend profile in rocketlauncher?

This is what I did and it worked for. Only problem is big box doesn't support direct input devices like my steering wheel. 

Link to comment
Share on other sites

14 hours ago, EduInmigrante said:

Hi, i just found a good solution!!!
Original post:

Open your RocketLauncher\Lib\Keymapper.ahk, there's the following code, my additions are in red.

RunXpadder(keymapperPath,keymapperExe,ProfilesInId Order,joystickArray)
} Else If (keymapper="joy2key") OR (keymapper = "joytokey")
{ Log("RunKeymapper - Looping through controllers to find joytokey profiles for each one",5)
If (keymapperLoad_Or_Unload = "load")
Profile2Load := GetProfile(keymapper, romProfile . "\" . dbName . "|" . emuProfile . "\" . emuName . "|" . systemProfile . "\" . systemName . "|" . defaultProfile . "\_Default", keymapperLoad_Or_Unload)
Else If (keymapperLoad_Or_Unload = "unload" && keymapperFrontEndProfile = "joytokey" && !contextOnExit)
Profile2Load := GetProfile(keymapper, FEProfile . "\" . keymapperFrontEndProfileName, keymapperLoad_Or_Unload)
Else If (keymapperLoad_Or_Unload = "unload" && keymapperFrontEndProfile != "joytokey" && !contextOnExit)
Profile2Load := ; user does not have joytokey set as their FE profile choice, keeping this blank will unload joytokey
Else If (keymapperLoad_Or_Unload = "menu")
Profile2Load := GetProfile(keymapper, RocketLauncherProfile . "\RocketLauncher", keymapperLoad_Or_Unload)

RunJoyToKey(keymapperPath,keymapperExe,Profile2Loa d)
}
Log("RunKeymapper - Ended")
If (keymapperLoad_Or_Unload = "load")
Sleep, 250
If (keymapperLoad_Or_Unload = "unload" && keymapperFrontEndProfile = "joytokey" && !contextOnExit)
Send, {Click down}{Click up}

Return %FEProfile%
}

Work's PERFECT to me!!!

When I tried this from the rocketlauncher thread It caused launchbox to behave strangely and different emulators had issues

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...