View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 4 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: gamepad button mapping
PostPosted: Tue May 02, 2006 6:31 pm 
Offline
Joined: Thu Sep 22, 2005 12:05 pm
Posts: 45
Location: Northern Kentucky
I'm using a logitech cordless wingman and I can't figure out how to map the buttons for xmame. I need to be able to do a COIN1 and START1 but I can't figure out which configuration file I need to modify.... any suggestions?


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 02, 2006 6:40 pm 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
When playing a game, press <TAB>, Input (general). Find the key you want to press <enter>, then press the key (or button) you want to control that action.

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 02, 2006 7:17 pm 
Offline
Joined: Thu Sep 22, 2005 12:05 pm
Posts: 45
Location: Northern Kentucky
Well I was able to hit tab and set the keys, if I get up to reach the keyboard :D


I need to add this to my default config:

Code:
<port type="COIN1" mask="128" defvalue="128" value="128">
 <newseq type="standard">KEYCODE_5 OR JOYCODE_1_BUTTON11</newseq>
</port>


<port type="START1" mask="32" defvalue="32" value="32">
  <newseq type="standard">JOYCODE_1_BUTTON9 OR KEYCODE_1</newseq>
</port>



However, I've added that to default.cfg in /home/mythtv/.xmame/cfg and added -cfg_directory /home/mythtv/.xmame/cfg to the command line args in the game players section. Still no love


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 05, 2006 8:09 am 
Offline
Joined: Sat Jan 28, 2006 11:29 am
Posts: 83
I put ALL the settings I need in the xmame global config file
/etc/xmame/xmamerc
And then I just set the command line to call xmame without any parms as they get picked up for all users here.

You PM'd me about setting the remote up to work with xmame, yer I got it all working but it's usefulness is debatable as only 1 key can be pressed at once. Also I don't think (not 100% sure though) that the default xmame shipped with RC5B7 has been compiled with LIRC so a recompile would be required.

My current & best solution is to map joystick buttons for start+coin etc. and to map Esc = RTrigger+LTrigger+But3+But4 (pressed simultaneously ala xbox reset). This is better than mapping esc on remote as that exits xmame, but then also exits the mythgame game select menu (irritating), this way puts you back in the mythgame menu where you left off. Also I'm not sure if it's been fixed in 0.19 but using the joystick to control myth was a no no if using xmame as the joystick presses were passed on to MythTV while playing games so upon exiting mythtv was at some random place, if it was still even running.

In the lircrc for xmame you need to send keycodes not keys
Here's some bits of my lircrc. I will up rest of it + tutorial when I re-check it all in 0.19. You may need to map the remote keys in xmame config as they may appear as numpad1, not 1
Code:
# Back -> Esc(01) = Escape/Exit/Back
begin
prog = xmame
button = Back
repeat = 3
config = 1
end

#Pause -> P(25) = Pause
begin
prog = xmame
button = Pause
repeat = 3
config = 25
end

#1 -> 1(2) = 1 player start
begin
prog = xmame
button = 1
repeat = 3
config = 2
end

#5 -> 5(6) = Coin1
begin
prog = xmame
button = 5
repeat = 3
config = 6
end


Top
 Profile  
 

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


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 22 guests


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