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

EzekielH

  • Newbie
  • *
  • Posts: 1
Re: Anyone know how to exit ePSXe using just a controller?
« Reply #8 on: May 16, 2017, 12: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 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 22, 2021, 10:10:16 AM by EzekielH »

davhuit

  • Full Member
  • ***
  • Posts: 173
Re: Anyone know how to exit ePSXe using just a controller?
« Reply #7 on: November 03, 2013, 08: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, 08:34:25 AM by davhuit »

Aeliss

  • Hero Member
  • *****
  • Posts: 915
Re: Anyone know how to exit ePSXe using just a controller?
« Reply #6 on: October 13, 2013, 08: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 #5 on: October 13, 2013, 06: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, 06:09:17 AM by davhuit »

Aeliss

  • Hero Member
  • *****
  • Posts: 915
Re: Anyone know how to exit ePSXe using just a controller?
« Reply #4 on: October 08, 2013, 11:39:18 AM »
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) [Select]
Local $joy,$coord,$h,$s,$msg
$joy    = _JoyInit()


If $CmdLine[0] == 1 Then
   Run ( '"snes9x.exe" -fullscreen "' & $CmdLine[1] & '"' )
   
   $coord=_GetJoy($joy,0)
   
   While $coord[7] <> 1
  $coord=_GetJoy($joy,0)
  Sleep(500)
   WEnd
   
   WinClose ( "Snes9X")
   
   $lpJoy=0 ; Joyclose
 
EndIf

exit 0





;======================================
;   _JoyInit()
;======================================
Func _JoyInit()
    Local $joy
    Global $JOYINFOEX_struct    = "dword[13]"
    $joy=DllStructCreate($JOYINFOEX_struct)
    if @error Then Return 0
    DllStructSetData($joy, 1, DllStructGetSize($joy), 1);dwSize = sizeof(struct)
    DllStructSetData($joy, 1, 255, 2)             ;dwFlags = GetAll
    return $joy
EndFunc
;======================================
;   _GetJoy($lpJoy,$iJoy)
;   $lpJoy  Return from _JoyInit()
;   $iJoy   Joystick # 0-15
;   Return  Array containing X-Pos, Y-Pos, Z-Pos, R-Pos, U-Pos, V-Pos,POV
;          Buttons down
;
;          *POV This is a digital game pad, not analog joystick
;          65535   = Not pressed
;          0       = U
;          4500 = UR
;          9000 = R
;          Goes around clockwise increasing 4500 for each position
;======================================
Func _GetJoy($lpJoy,$iJoy)
    Local $coor,$ret
    Dim $coor[8]
    DllCall("Winmm.dll","int","joyGetPosEx", _
            "int",$iJoy, _
            "ptr",DllStructGetPtr($lpJoy))
    if Not @error Then
        $coor[0]    = DllStructGetData($lpJoy,1,3)
        $coor[1]    = DllStructGetData($lpJoy,1,4)
        $coor[2]    = DllStructGetData($lpJoy,1,5)
        $coor[3]    = DllStructGetData($lpJoy,1,6)
        $coor[4]    = DllStructGetData($lpJoy,1,7)
        $coor[5]    = DllStructGetData($lpJoy,1,8)
        $coor[6]    = DllStructGetData($lpJoy,1,11)
        $coor[7]    = DllStructGetData($lpJoy,1,9)
    EndIf
    return $coor
EndFunc

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, 11:48:02 AM by Aeliss »

Graphicsgod

  • Newbie
  • *
  • Posts: 47
    • Email
Re: Anyone know how to exit ePSXe using just a controller?
« Reply #3 on: October 08, 2013, 03: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 :(!!

davhuit

  • Full Member
  • ***
  • Posts: 173
Re: Anyone know how to exit ePSXe using just a controller?pe
« Reply #2 on: October 04, 2013, 07: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
Anyone know how to exit ePSXe using just a controller?
« Reply #1 on: October 03, 2013, 04: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!!