Page 1 of 1

Anyone know how to exit ePSXe using just a controller?

Posted: Thu Oct 03, 2013 9:36 pm
by Graphicsgod
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!!


Image

Re: Anyone know how to exit ePSXe using just a controller?pe

Posted: Fri Oct 04, 2013 12:48 pm
by davhuit
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.

Re: Anyone know how to exit ePSXe using just a controller?

Posted: Tue Oct 08, 2013 8:40 am
by Graphicsgod
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 :(!!

Re: Anyone know how to exit ePSXe using just a controller?

Posted: Tue Oct 08, 2013 4:39 pm
by Aeliss
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: Select all

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.

Re: Anyone know how to exit ePSXe using just a controller?

Posted: Sun Oct 13, 2013 11:05 am
by davhuit
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.

Re: Anyone know how to exit ePSXe using just a controller?

Posted: Sun Oct 13, 2013 1:15 pm
by Aeliss
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 ^^).

Re: Anyone know how to exit ePSXe using just a controller?

Posted: Sun Nov 03, 2013 2:32 pm
by davhuit
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).

Re: Anyone know how to exit ePSXe using just a controller?

Posted: Tue May 16, 2017 5:11 am
by EzekielH
[quote="davhuit"]
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).
[/quote]

Thanks very much Davhuit, I just gave it a try and it works perfect.