Anyone know how to exit ePSXe using just a controller?

Get answers to questions about using mGalaxy.
Post Reply
Graphicsgod
Newbie
Newbie
Posts: 47
Joined: Mon Sep 16, 2013 3:27 am

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
davhuit
Full Member
Full Member
Posts: 173
Joined: Mon Aug 12, 2013 3:06 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
Newbie
Posts: 47
Joined: Mon Sep 16, 2013 3:27 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
Hero Member
Posts: 900
Joined: Thu Apr 04, 2013 5:55 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: 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.
Last edited by Aeliss on Tue Oct 08, 2013 4:48 pm, edited 1 time in total.
davhuit
Full Member
Full Member
Posts: 173
Joined: Mon Aug 12, 2013 3:06 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 edited by davhuit on Sun Oct 13, 2013 11:09 am, edited 1 time in total.
Aeliss
Hero Member
Hero Member
Posts: 900
Joined: Thu Apr 04, 2013 5:55 pm

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
Full Member
Posts: 173
Joined: Mon Aug 12, 2013 3:06 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 edited by davhuit on Sun Nov 03, 2013 2:34 pm, edited 1 time in total.
EzekielH
Newbie
Newbie
Posts: 1
Joined: Tue May 09, 2017 1:06 pm

[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.
Last edited by EzekielH on Fri Oct 22, 2021 3:10 pm, edited 1 time in total.
Post Reply