LinHES Forums http://forum.linhes.org/ |
|
how can I quit zsnes with my remote? http://forum.linhes.org/viewtopic.php?f=6&t=10032 |
Page 1 of 1 |
Author: | Joker [ Sat May 13, 2006 11:34 pm ] |
Post subject: | how can I quit zsnes with my remote? |
I want to be able to exit out of zsnes using my remote (grey hauppauge), I tried using irxevent without success. irxevent is working, If I start zsnes in a terminal I can see the keypresses sent by irxevent showing up in the terminal window, but zsnes isn't seeing them. my lircrc entry looks like this begin prog = irxevent button = Back/Exit config = Key Escape ZSNES end I have also tried setting the target as CurrentWindow, Focus, and zsnes with no luck. I have read that people have found ways to exit zsnes via remote but I can't find specifically how, if anyone could point me in the right direction i would appreciate it. Thanks. |
Author: | mad_paddler [ Sun May 14, 2006 4:11 am ] |
Post subject: | |
ZSNES needs to be in lowercase i think: config = Key Escape zsnes if that doesnt work, try: config = Key q zsnes |
Author: | md10md [ Sun May 14, 2006 8:51 am ] |
Post subject: | |
If you have a gamepad do what I do and assign one of the buttons on it to exit Zsnes, you can do this in one of the menus on the right side of the app. I also have two buttons set as load state and save state which is really handy. |
Author: | misterflibble [ Sun May 14, 2006 5:49 pm ] |
Post subject: | |
I found a workaround for this a while ago. I posted it to the old wiki, but that seems to have been replaced by the new one. What I did was first install xmacro, a utility for playing back keypresses: Code: apt-get install xmacro Hopefully, this won't mess with any dependencies as xmacro is pretty small and hasn't changed in years. You'll need to chose one button on your remote, and map it to send the escape keypress (and ONLY the escape keypress, you can't use the button for anything else) in ~/.mythtv/lirc: Code: begin
prog = irexec button = EXIT config = xmacroplay-keys :0 Escape end I believe for the escape key to cause an exit, and not just the menu to pop up, you'll have to set zsnes to run in non-gui mode by running "zsnes -m" So far I've had a pretty high success rate with this method, but its not 100% with zsnes. This is probably dependant on your remote and its repeat rate. Oftentimes zsnes requires a few tries before it exits, but I've never yet had it where I couldn't get out with the remote. This method should work for exiting zsnes, fce-ultra, mplayer, and for backing out of menus inside of mythtv. I eventually decided to free up my other buttons and just use one key exclusively as an escape key for all my apps (xine's keymap had to be modified) If anyone tries this and it works/fails, please let me know. I'd like to add it to the wiki once I get some more feedback. |
Author: | Joker [ Mon May 15, 2006 9:42 am ] |
Post subject: | |
I will have to try xmacro, thanks. I do currently use the gamepad to exit, and does work, it's just not consistant with the myth interface. My ultimate goal is to get several emulators running and behaving the same way and be consistant with the myth interface so they are more appealing for my wife and visitors to use. Ultimately I would like to handle save states with the remote too, but that isn't a critical issue. I will report back with my results with xmacro. |
Author: | misterflibble [ Sun Jun 04, 2006 2:55 pm ] |
Post subject: | |
Anybody try this yet? |
Author: | Joker [ Tue Jun 13, 2006 11:05 am ] |
Post subject: | |
I haven't had a chance to mess with it yet. |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |