View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 7 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sat May 13, 2006 11:34 pm 
Offline
Joined: Sun Mar 06, 2005 12:46 pm
Posts: 64
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.

_________________
AMD BE-2400
ASUS M2N-E Motherboard
4GB Ram
Nvidia 9400 Fanless
2 HDHomerun (dual tuner)


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 14, 2006 4:11 am 
Offline
Joined: Sun Jun 12, 2005 2:39 pm
Posts: 464
Location: UK
ZSNES needs to be in lowercase i think:

config = Key Escape zsnes

if that doesnt work, try:

config = Key q zsnes


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 14, 2006 8:51 am 
Offline
Joined: Sat Jun 25, 2005 7:39 pm
Posts: 162
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.


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 14, 2006 5:49 pm 
Offline
Joined: Mon Aug 01, 2005 10:18 am
Posts: 84
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.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 15, 2006 9:42 am 
Offline
Joined: Sun Mar 06, 2005 12:46 pm
Posts: 64
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.

_________________
AMD BE-2400
ASUS M2N-E Motherboard
4GB Ram
Nvidia 9400 Fanless
2 HDHomerun (dual tuner)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 04, 2006 2:55 pm 
Offline
Joined: Mon Aug 01, 2005 10:18 am
Posts: 84
Anybody try this yet?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 13, 2006 11:05 am 
Offline
Joined: Sun Mar 06, 2005 12:46 pm
Posts: 64
I haven't had a chance to mess with it yet.

_________________
AMD BE-2400
ASUS M2N-E Motherboard
4GB Ram
Nvidia 9400 Fanless
2 HDHomerun (dual tuner)


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: Bing [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu