Thanks for the improved version. Small suggestion, this way it works with both non-default key settings and joystick:
Sub ZZZ_KeyDown(ByVal keycode)
if keycode = keyJoyDown then Controller.Switch(swJoyDown) = true
if keycode = keyJoyUp then Controller.Switch(swJoyUp) = true
if keycode = keyJoyLeft then Controller.Switch(swJoyLeft) = true
if keycode = keyJoyRight then Controller.Switch(swJoyRight) = true
if keycode = LeftMagnaSave then Controller.Switch(swJoyDown) = true
if keycode = RightMagnaSave then Controller.Switch(swJoyUp) = true
if keycode = LeftFlipperKey then Controller.Switch(swJoyLeft) = true
if keycode = RightFlipperKey then Controller.Switch(swJoyRight) = true
If KeyCode=PlungerKey Then Plunger.Pullback
If vpmKeyDown(KeyCode) Then Exit Sub
End Sub
Sub ZZZ_KeyUp(ByVal keycode)
if keycode = keyJoyDown then Controller.Switch(swJoyDown) = false
if keycode = keyJoyUp then Controller.Switch(swJoyUp) = false
if keycode = keyJoyLeft then Controller.Switch(swJoyLeft) = false
if keycode = keyJoyRight then Controller.Switch(swJoyRight) = false
if keycode = LeftMagnaSave then Controller.Switch(swJoyDown) = false
if keycode = RightMagnaSave then Controller.Switch(swJoyUp) = false
if keycode = LeftFlipperKey then Controller.Switch(swJoyLeft) = false
if keycode = RightFlipperKey then Controller.Switch(swJoyRight) = false
If KeyCode=PlungerKey Then Plunger.Fire:PlaySound "Plunger"
If vpmKeyUp(KeyCode) Then Exit Sub
End Sub
Edited by Sir Cheddar, 29 March 2016 - 12:54 AM.