Main > Software Forum

pinmame/vpinball button question

Pages: << < (2/3) > >>

Edgedamage:

Alright here's one for you. To change the the extra keys you have to edit the tables script. My problem was with Judge dredd the extra buttons were mapped to keys "z-enter" enter was ok but z was bugging me. So I opened the table folder right clicked on the VPT file and went to edit. When the editor was opened I clicked script it's over the play button. I changed the key to "a" but that still didn't do anything you have to also change the key code. And finding the key code you have to count the keys on the keyboard starting with the tildie key dont count the insert/home keys or the numkeys just the keys on the main keyboard. Here's a sample of my edited script I changed to make judge dredd use the "a" key for the left fire button.

'===================
' Keyboard Handling
'===================
Sub JudgeDredd_KeyUp(ByVal keycode)
   If vpmKeyUp(keycode) Then Exit Sub
   If keycode = PlungerKey Then Controller.Switch(12) = False ' Right Fire Button
   If keycode = 3 Then Controller.Switch(31)  = False ' Buy-In Button     (2)
   If keycode = 12 Then Controller.Switch(44) = False ' Super Game        (-)
   If keycode = 30 Then Controller.Switch(11) = False ' Left Fire Button  (a)
End Sub

Sub JudgeDredd_KeyDown(ByVal keycode)
   If vpmKeyDown(keycode) Then Exit Sub
   If keycode = PlungerKey Then Controller.Switch(12) = True ' Right Fire Button
   If keycode = 3 Then Controller.Switch(31)  = True ' Buy-In Button     (2)
   If keycode = 12 Then Controller.Switch(44) = True ' Super Game        (-)
   If keycode = 30 Then Controller.Switch(11) = True ' Left Fire Button  (a)
End Sub


Zakk:

So you guys are saying that vpin doesn't do double buttons, but pinmame does, and there is a way to tell vpin to activate the extra buttons? (I suppose that makes sense since it is really a table editor).  Slowly it all starts to make sense... or does it?

Edgedamage:

did my emails help?

Zakk:

Of course! Nice pictures! ;)  How can you be concentrating of pinball, shouldn't you out doing something else!?!?  ;D

Edgedamage:

little buddy sleeps a good 4hrs!

Pages: << < (2/3) > >>

Go to full version