Jump to content
LaunchBox Community Forums
teeedubb

Pre-configured SumatraPDF + JoyToKey to view PDF's with a controller in LaunchBox

Recommended Posts

Pre-configured SumatraPDF + JoyToKey to view PDF's with a controller in LaunchBox

View File

This is a pre-configured SumatraPDF and JoyToKey to use for viewing PDF manuals in LaunchBox with a controller. It was setup with a DS3 using ScpTools Reloaded so it should also be compatible with a Xbox 360 controller. I have not tested it with any other controllers.

The zip file contains SumatraPDF, JoyToKey and a AHK script that will launch JoyToKey in a hidden state, then SumatraPDF and when SumatraPDF is closed it will kill JoyToKey. For it to display PDF's in LaunchBox you need to configure the Windows default PDF viewer as 'SumatraPDF-JoyToKey.exe'. You can update either SumatraPDF or JoyToKey by placing the contents of the portable installs in the root directory.

Script usage outside of LB is:  "c:\path\to\SumatraPDF-JoyToKey.exe" "c:\path\to\pdf\file.pdf"

 

Controls:

D-Pad/Left analog stick: Up Down Left Right

Right analog stick Up+Down/L+R triggers: Zoom in/out

L+R bumpers: Go to First/Last page

Cross (Green A on 360): Next page

Square (Blue X on 360): Rotate image 90'

Triangle (Yellow Y on 360): Cycle through zoom/fit to screen modes (reset zoom)

Circle (Red B on 360): Exit SumatraPDF

 

Forum thread

 

Credits:

JoyToKey

SumatraPDF

AutoHotKey

 


 

  • Like 2

Share this post


Link to post
Share on other sites

This works almost perfectly for viewing magazines... but I'm having a problem with it opening and not being the active window. In BigBox, when I open a magazine, it displays it but the controller continues to control BigBox behind it. I have to use my mouse to left click on the viewer to active it. So far I've had no luck finding a solution...

Share this post


Link to post
Share on other sites
On 2/20/2018 at 1:24 AM, PanteraZombie said:

This works almost perfectly for viewing magazines... but I'm having a problem with it opening and not being the active window. In BigBox, when I open a magazine, it displays it but the controller continues to control BigBox behind it. I have to use my mouse to left click on the viewer to active it. So far I've had no luck finding a solution...

Hey guys! Sorry for bumping this old topic. I have the same issue. @PanteraZombie, were you able to resolve this?

Share this post


Link to post
Share on other sites
2 minutes ago, Kondorito said:

Hey guys! Sorry for bumping this old topic. I have the same issue. @PanteraZombie, were you able to resolve this?

No, I haven't messed with it in a while... I'm thinking it might have something to do with the the code to move the mouse cursor to the bottom right of the corner of the window, but we can now easily hide the cursor within BigBox. Or it might need tweaking to force the focus on the magazine.

Share this post


Link to post
Share on other sites

Yeah, could be. The strange thing is that it does not happen with all the files, just some. 

I will try to dig a little deeper and see if I can come up with something. 

  • Like 1

Share this post


Link to post
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
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...