A nasty patch for the zsnes Super Nintendo emulator
which allows one to quit the application by pressing
L-R-Start on one's gamepad. This is useful for set-top
applications where the only input is a joystick.
Is it okay if I make this optional, some games might use
this key combination. Or how about only allow it to be
used in the GUI. Let me know what I should do.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
My intent with this patch is to allow one to use zsnes using
ONLY a gamepad as input. Because of this, allowing
L-R-Start to quit only the GUI does not make sense to me.
Making it optional (and configurable in the GUI) is a good
idea, though.
Ideally, zsnes should present a prompt before quitting after
one presses L-R-Start, for example, "Are you sure you want
to quit? Press A if yes, Y if no" Unfortunately, my x86
assembly is not so good -- I would have trouble implementing
this myself. Anyway, if the user answered no, then the
gamepad input could be passed on to the game.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You can use the gamepad as input in the GUI. Under Misc
choose GUI Optns and check Use Joypad 1. You should be
able to navagate the GUI using the gamepad now. However
you can not get back to the GUI with the gamepad once you
are in a game. So your patch would be good here. Should I
add a seperate option or automatically enable it when Use
Joypad 1 is enabled?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Gamepad quit patch
Logged In: YES
user_id=195310
Thanks for the patch! I'll commit it ASAP.
Logged In: YES
user_id=195310
Is it okay if I make this optional, some games might use
this key combination. Or how about only allow it to be
used in the GUI. Let me know what I should do.
Logged In: YES
user_id=198242
My intent with this patch is to allow one to use zsnes using
ONLY a gamepad as input. Because of this, allowing
L-R-Start to quit only the GUI does not make sense to me.
Making it optional (and configurable in the GUI) is a good
idea, though.
Ideally, zsnes should present a prompt before quitting after
one presses L-R-Start, for example, "Are you sure you want
to quit? Press A if yes, Y if no" Unfortunately, my x86
assembly is not so good -- I would have trouble implementing
this myself. Anyway, if the user answered no, then the
gamepad input could be passed on to the game.
Logged In: YES
user_id=195310
You can use the gamepad as input in the GUI. Under Misc
choose GUI Optns and check Use Joypad 1. You should be
able to navagate the GUI using the gamepad now. However
you can not get back to the GUI with the gamepad once you
are in a game. So your patch would be good here. Should I
add a seperate option or automatically enable it when Use
Joypad 1 is enabled?
Logged In: YES
user_id=198242
I like the idea of a separate option.
Logged In: NO
where do you get gamepads?