Author Topic: Anyone know how to exit ePSXe using just a controller?  (Read 13022 times)

Graphicsgod

  • Newbie
  • *
  • Posts: 47
    • Email
Anyone know how to exit ePSXe using just a controller?
« on: October 03, 2013, 05:36:34 PM »
I have searched the internet, looked all over the program and cannot find a way to bind either a set of buttons or the R3 or R4 button to allow me to exit this program. To exit right now, I have to have a keyboard hooked up and either press Esc or control-alt-del to exit. I want to make use of this program without the use of keyboard or mouse. In Hyperspin, there were programs you can utilize to allow you to remap certain buttons for each EMU.

If anyone knows, please let me know.. going insane!!



davhuit

  • Full Member
  • ***
  • Posts: 173
Re: Anyone know how to exit ePSXe using just a controller?pe
« Reply #1 on: October 04, 2013, 08:48:32 AM »
I use xpadder with only one key enabled, the escape one, binded to "hold LT (enable xpadder second profile) then right stick click.

That's way, even if an emu/pc game require me to make a click on the right stick, it won't interfere and so I can leave xpadder on all the time (as I never saw a game requiring to hold LT then to make a right stick click.

Graphicsgod

  • Newbie
  • *
  • Posts: 47
    • Email
Re: Anyone know how to exit ePSXe using just a controller?
« Reply #2 on: October 08, 2013, 04:40:01 AM »
I love Xpadder, but due to some EMUs and needing access to all the buttons, Xpadder might not work for my situation..

I'd hate to setup the "ESC" key for "R3" (in Xpadder), for example; and then in another EMU, I have "R3" for something else (like MAME for example) and then there would be an interference/conflict. I know the settings sadly get saved to the registry for eSPXe, but the buttons are mapped via numbers, and I can't make heads or tails of it.

I just need one button changed or added for this stupid program and it's driving me nuts not allowing me to customize it :(!!

Aeliss

  • Hero Member
  • *****
  • Posts: 748
Re: Anyone know how to exit ePSXe using just a controller?
« Reply #3 on: October 08, 2013, 12:39:18 PM »
If I remember, you can make xpadder config working only if a selected application is active, lot of options in this application.
You can too use a script to load your Xpadder config, load the emul and close automaticlly xpadder after the emulator close.
Or you can edit this autoit script

Code: AutoIt
  1. Local $joy,$coord,$h,$s,$msg
  2. $joy    = _JoyInit()
  3.        
  4.  
  5. If $CmdLine[0] == 1 Then
  6.    Run ( '"snes9x.exe" -fullscreen "' & $CmdLine[1] & '"' )
  7.    
  8.    $coord=_GetJoy($joy,0)
  9.    
  10.    While $coord[7] <> 1
  11.           $coord=_GetJoy($joy,0)
  12.           Sleep(500)
  13.    WEnd
  14.    
  15.    WinClose ( "Snes9X")
  16.    
  17.    $lpJoy=0 ; Joyclose
  18.  
  19.  
  20.          
  21.          
  22.          
  23.          
  24.          
  25. ;======================================
  26. ;   _JoyInit()
  27. ;======================================
  28. Func _JoyInit()
  29.     Local $joy
  30.     Global $JOYINFOEX_struct    = "dword[13]"
  31.     $joy=DllStructCreate($JOYINFOEX_struct)
  32.     DllStructSetData($joy, 1, DllStructGetSize($joy), 1);dwSize = sizeof(struct)
  33.     DllStructSetData($joy, 1, 255, 2)             ;dwFlags = GetAll
  34.     return $joy
  35. ;======================================
  36. ;   _GetJoy($lpJoy,$iJoy)
  37. ;   $lpJoy  Return from _JoyInit()
  38. ;   $iJoy   Joystick # 0-15
  39. ;   Return  Array containing X-Pos, Y-Pos, Z-Pos, R-Pos, U-Pos, V-Pos,POV
  40. ;          Buttons down
  41. ;
  42. ;          *POV This is a digital game pad, not analog joystick
  43. ;          65535   = Not pressed
  44. ;          0       = U
  45. ;          4500 = UR
  46. ;          9000 = R
  47. ;          Goes around clockwise increasing 4500 for each position
  48. ;======================================
  49. Func _GetJoy($lpJoy,$iJoy)
  50.     Local $coor,$ret
  51.     Dim $coor[8]
  52.     DllCall("Winmm.dll","int","joyGetPosEx", _
  53.             "int",$iJoy, _
  54.             "ptr",DllStructGetPtr($lpJoy))
  55.         $coor[0]    = DllStructGetData($lpJoy,1,3)
  56.         $coor[1]    = DllStructGetData($lpJoy,1,4)
  57.         $coor[2]    = DllStructGetData($lpJoy,1,5)
  58.         $coor[3]    = DllStructGetData($lpJoy,1,6)
  59.         $coor[4]    = DllStructGetData($lpJoy,1,7)
  60.         $coor[5]    = DllStructGetData($lpJoy,1,8)
  61.         $coor[6]    = DllStructGetData($lpJoy,1,11)
  62.         $coor[7]    = DllStructGetData($lpJoy,1,9)
  63.     EndIf
  64.     return $coor
  65.  

This code can close snes with the bouton 7.

I m 100/100 agree with you, Using xpadder is really binding, And I need often to remake a config because I forget to close it before making the setting.
But there is too much emuls without possible escape key, The easiest way for me is to use this application and use the same boutton on ALL emuls to quit, to avoid conflict. For the emulator, seeing first the emulate escape key or the boutton X is same for it, if the 2 controls do the same thing.
« Last Edit: October 08, 2013, 12:48:02 PM by Aeliss »

davhuit

  • Full Member
  • ***
  • Posts: 173
Re: Anyone know how to exit ePSXe using just a controller?
« Reply #4 on: October 13, 2013, 07:05:43 AM »
It wouldn't escape with just R3. R3 would work fine with the function you choosed to bind on it.

It would only escape if you hold L2 before pressing R3.

And I yet never see a game requiring to use that combo of key in-game (even PC game) so I can play any game without having to close Xpadder.

And of course, it able me to always have the same combo key for closing each emu (and it spare me a button slot in the emus config, as I can just choose "escape" key even for emus which let you remap it.
« Last Edit: October 13, 2013, 07:09:17 AM by davhuit »

Aeliss

  • Hero Member
  • *****
  • Posts: 748
Re: Anyone know how to exit ePSXe using just a controller?
« Reply #5 on: October 13, 2013, 09:15:26 AM »
Yep I think like him, he is right, one more button to use, and a combo is better to escape from emulator, to avoid errors (pressing the bad key at bad moment ^^).

davhuit

  • Full Member
  • ***
  • Posts: 173
Re: Anyone know how to exit ePSXe using just a controller?
« Reply #6 on: November 03, 2013, 09:32:40 AM »
And here's the profile I use if some peoples are interested.

It emulate the "ESC" key by holding "LT" then pressing the right analog stick, though you can custom the "LT" or "Right analog stick pressure" if you want (LT is on the first page of the profile, and the right stick click on the second page).
« Last Edit: November 03, 2013, 09:34:25 AM by davhuit »

EzekielH

  • Newbie
  • *
  • Posts: 1
Re: Anyone know how to exit ePSXe using just a controller?
« Reply #7 on: May 16, 2017, 01:11:59 AM »
And here's the profile I use if some peoples are interested.

It emulate the "ESC" key by holding "LT" then pressing the right analog stick, though you can custom the "LT" or "Right analog stick pressure" if you want (LT is on the first page with bathmate x50 reviews on of the profile, and the right stick click on the second page).

Thanks very much Davhuit, I just gave it a try and it works perfect.
« Last Edit: October 21, 2017, 04:21:52 AM by EzekielH »