Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Another Mame keymap problem  (Read 4015 times)

0 Members and 1 Guest are viewing this topic.

cica

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 15
  • Last login:November 27, 2017, 04:54:00 pm
Another Mame keymap problem
« on: April 13, 2004, 09:31:50 am »
Hi

I have literally spent hours researching and trying to figure this one out myself and I hate that I have to even ask this one, but I'm at my wit's end.

I have been trying to remap keys to control the Mame GUI.  All I wanted to do was remap Player1 Start to select the game.

I go into c:\mame32\mame32ui.ini and add the line:

IU_SELECT        "KEYCODE_1"

I then save it and run Mame32.  As soon as I do, Mame32 rewrites the mame32ui.ini back to the default and my change is gone!

I even went so far as to make the file read-only after I edited it.  Then Mame32 didn't rewrite the file, but it didn't accept my remap either.

To answer a few questions in advance:

1) I am running Mame32 on Windows XP.

2) I tried deleting c:\mame32\mame32ui.ini and c:\mame32\ini\mame32.ini.  Mame32 recreates the files upon startup and the problem persists.

3) I selected the c:\mame32 folder, and the c:\mame32\ini folder and made sure the read-only flag was clear for them and all subfolders.

Any help would really be appreciated.

Thanks
-Tom

Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re:Another Mame keymap problem
« Reply #1 on: April 13, 2004, 10:23:57 am »
I use commandline MAME, not MAME32, so don't know if this will help, but

is

keyboard_in_interface 1

set in MAME32ui.ini ?

Also, try running MAME32 and selecting "Options - Interface Options - Allow game selection by custom key sequences"

Hope it helps!
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.

cica

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 15
  • Last login:November 27, 2017, 04:54:00 pm
Re:Another Mame keymap problem
« Reply #2 on: April 13, 2004, 04:34:04 pm »
is keyboard_in_interface 1 set in MAME32ui.ini ?

Also, try running MAME32 and selecting "Options - Interface Options - Allow game selection by custom key sequences"


Yes, keyboard_in_interface is 1 and I have the "Allow game selection by custom key sequences" selected.

What could cause the Mame32ui.ini to reset every time mame32 is run?

-Tom

crashwg

  • Trade Count: (+10)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3076
  • Last login:May 24, 2019, 11:01:05 am
Re:Another Mame keymap problem
« Reply #3 on: April 13, 2004, 04:57:16 pm »
I just tried doing the same thing you are trying to and it worked first try.

The first thing that comes to mind is are you using "|" and "!" correctly?

It should read ui_key_start "KEYCODE_ENTER | KEYCODE_1 ! KEYCODE_LALT".  Notice the | means "or" and the ! means "not".  So, enter or 1 not left alt is what the gui sees.
« Last Edit: April 13, 2004, 04:58:01 pm by crashwg »
If there's bees in the trap I'm catching em
By the thorax and abdomen
And sanding the stingers down to a rough quill
Then I dip em in ink, and I scribble a bit
But if it they wriggle then I tickle em until they hold still
Lemme say it again
In my land of pretend
I use bees as a mf'n pen

cica

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 15
  • Last login:November 27, 2017, 04:54:00 pm
Re:Another Mame keymap problem
« Reply #4 on: April 13, 2004, 05:01:59 pm »
The first thing that comes to mind is are you using "|" and "!" correctly?

It should read ui_key_start "KEYCODE_ENTER | KEYCODE_1 ! KEYCODE_LALT".  Notice the | means "or" and the ! means "not".  So, enter or 1 not left alt is what the gui sees.

Thanks, I'll give that a try tonight.  I've been using UI_Select, not ui_key_start.  Most likely, Mame is barfing on that line and recreating the file because it doesn't like what it sees.  

BTW, Why do I need to tell Mame not to use the left ALT key?

crashwg

  • Trade Count: (+10)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3076
  • Last login:May 24, 2019, 11:01:05 am
Re:Another Mame keymap problem
« Reply #5 on: April 13, 2004, 08:19:11 pm »
why not to use alt key... I have no idea, it came that way so I kept it that way.  Not sure what kind of ill effects might be let loose by changing it, so do that at your own risk!!!    :P J/k
If there's bees in the trap I'm catching em
By the thorax and abdomen
And sanding the stingers down to a rough quill
Then I dip em in ink, and I scribble a bit
But if it they wriggle then I tickle em until they hold still
Lemme say it again
In my land of pretend
I use bees as a mf'n pen

Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re:Another Mame keymap problem
« Reply #6 on: April 14, 2004, 07:22:09 am »
BTW, Why do I need to tell Mame not to use the left ALT key?
I believe the ALT-ENTER combination toggles fullscreen in most windows apps, just tested, in MAME32, ALT-ENTER brings up the properties screen.  I think maybe if you didn't exclude it, then you could never get the properties screen to come up with that combination because MAME32 would always see the ENTER as a start game command.
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.