Main > Software Forum

Can I create a Button Configuration for a BIOS?

Pages: << < (2/2)

simplygriff:

Wow thanks for the reply.  I know that took a lot of typing.  Thanks!

So to change this
631
245

to

123
456

I should change this
P1_BUTTON1     "KEYCODE_Z | MOUSECODE_1_BUTTON1"
P1_BUTTON2     "KEYCODE_X | MOUSECODE_1_BUTTON2"
etc.

to this

P1_BUTTON1     "JOYCODE_6"  
P1_BUTTON2     "JOYCODE_3"
etc.

This is using Mame's built in Joystick support.  Is this right?  Thanks so much for your help.

SirPoonga:

Close, you are on the right track.  the ini file's joycode actually goes like this (fromt he std.ini file

P1_JOYSTICKRIGHT_UP     "KEYCODE_I | JOYCODE_1_BUTTON2"
P1_JOYSTICKRIGHT_DOWN   "KEYCODE_K | JOYCODE_1_BUTTON3"
P1_JOYSTICKRIGHT_LEFT   "KEYCODE_J | JOYCODE_1_BUTTON1"
P1_JOYSTICKRIGHT_RIGHT  "KEYCODE_L | JOYCODE_1_BUTTON4"
P2_BUTTON1              "KEYCODE_A | JOYCODE_2_BUTTON1"
P2_BUTTON2              "KEYCODE_S | JOYCODE_2_BUTTON2"
P2_BUTTON3              "KEYCODE_Q | JOYCODE_2_BUTTON3"
P2_BUTTON4              "KEYCODE_W | JOYCODE_2_BUTTON4"


You have designate which joystick you have connected to your computer :)

Oh yeah, and what HC said.  Though in general the driver is the same name as the bios.

simplygriff:

Awesome!!!
I will try this out tonight.  You have no idea how much this will help me for configurations.  Thanks so much!
-G

Pages: << < (2/2)

Go to full version