LinHES Forums http://forum.linhes.org/ |
|
gamepad button mapping http://forum.linhes.org/viewtopic.php?f=6&t=9893 |
Page 1 of 1 |
Author: | Type82 [ Tue May 02, 2006 6:31 pm ] |
Post subject: | gamepad button mapping |
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? |
Author: | cesman [ Tue May 02, 2006 6:40 pm ] |
Post subject: | |
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. |
Author: | Type82 [ Tue May 02, 2006 7:17 pm ] |
Post subject: | |
Well I was able to hit tab and set the keys, if I get up to reach the keyboard ![]() 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 |
Author: | HappyTalk [ Fri May 05, 2006 8:09 am ] |
Post subject: | |
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 |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |