Jump to content



Photo

Standard key mapping for VP and FP with remapped additional keys for PinballFX2

DOFFX2

  • Please log in to reply
3 replies to this topic

#1 DDH69

DDH69

    Pinball Wizard

  • Platinum Supporter
  • 3,605 posts
  • Location:DOFLinx HQ, Adelaide

  • Flag: Australia

  • Favorite Pinball: Monster Bash

Posted 14 August 2016 - 05:22 AM

The journey with my little DOFX2 utility goes on.  I decided that I wanted my ‘Start’ key to actually start a Pinball FX2 game, and my first Coin key to change the camera angle.  Easy, just remap them on the iPac, well I didn’t want to try and do that on the fly from the command line as I launched a different emulator from PinballX.
 
My solution, add a small relay board (one relay per keyboard key I wanted, two to start, plus two spare for later – 4 relays fitted nicely on the circuit board).  The relay is turned on from my LedWiz and it provides a switch input to my iPac using the relay normally open contacts.  The iPac is permanently configured to see this new input as the <ENTER> key (start and launch ball in Pinball FX2.  So in effect I have two <ENTER> keys when I use Pinball FX2 without remapping keys on the iPac.
 
Let me explain more.  Step one build a relay board with the relays powered by unused outputs on my LedWiz.  The board can be seen below.
b29072644a50e7ab5dda1afe5d11b219_t.jpg371c8ceb43d87a396b25bbb8ceb28976_t.jpg61be815f62ad872cdd21f37ed991e0ba_t.jpg
 
Step 2, mount the relay board and wire the Normally Open (NO) contacts to unused switch inputs on my Ipac.  See below.
80056a6f2107cb1ccdd4deb50756620f_t.jpgd39d9cef8f30414d20d15a7a2cffd5b2_t.jpg
 
Now program the iPac to use those new inputs as the keys I want.  So far I’ve setup two of them, the first as another <ENTER> key (to start the game, enter initials, etc in Pinball FX2), the second as the <C> key to change the camera angle in Pinball FX2
 
Step 3, setup DOFFX2 to have a ‘Launch Before’ message sent to it that reconfigures the KEY_TO_OUTPUT to have a single button activate two outputs (message function available from V2.0).  So my standard ‘Start’ button <1>, triggers two LedWiz outputs, the first turns on the LED in the button so I have a visual confirmation of the button being pressed, the second turns on the relay causing an iPac key stroke of <ENTER>.  The setup and commands below were used.
9234f7baa2efac05a0f2ff39e53ed682_t.png
 
DOFFX2_PinballFX2_On.ini
KEY_TO_OUTPUT=32 101 34 103 35 106 36 105 31 120 34 121
 
DOFFX2_PinballFX2_Off.ini
KEY_TO_OUTPUT=32 101 34 103 35 106 36 105
 
The “on” file sets two more outputs for various keys I have doing various acrtions, they are my relays.  The “off” set it back to just the LED buttons which I am happy to have in FP and VP when DOFFX2 activates selectively via GAME_FLAG_FILE's for them.  I can’t leave the KEY_TO_OUTPUT for the relays active, as FP or VP (quite rightly) will not like one valid key trying to do two things!
The KEY_TO_OUTPUT commands could have been sent as a message on their own to DOFFX2, I chose to send them via a supplementary ini (SUP_INI) message instead.  That way I can easily add more start-up / shutdown stuff for PinballFX2 later on.  Just personal preference really.
 
The end result is that when in Pinball FX2 my standard ‘Start’ button now sends two keystrokes to Pinball FX2, its normal <1> keystroke and an <ENTER> keystroke.  The <1> is ignored by the software and the <ENTER> is used as appropriate.
 
Well I had fun, got what I wanted, and hope this can help someone else.
 
359f4e021da8a8a10ed9309f70b94744_t.jpg

DOFLinx
Contributions for equipment to help with ongoing DOFLinx development can be made here

#2 Avi

Avi

    Enthusiast

  • Members
  • PipPipPip
  • 65 posts

  • Flag: Chile

  • Favorite Pinball: Avengers

Posted 21 August 2016 - 09:49 AM

I do not understand well that is achieved with this

Edited by Avi, 21 August 2016 - 09:49 AM.


#3 DDH69

DDH69

    Pinball Wizard

  • Platinum Supporter
  • 3,605 posts
  • Location:DOFLinx HQ, Adelaide

  • Flag: Australia

  • Favorite Pinball: Monster Bash

Posted 21 August 2016 - 10:05 AM

I do not understand well that is achieved with this

 

The end result is ....

 

The Start button and Plunger both work as the <ENTER> key when I run Pinball FX2 without re-programming my iPac. Pinball FX2 uses <ENTER> to start the game, pull the plunger and confirm entry of initials, I didn't want to always be pulling the plunger for <ENTER>.  Also, the Coin 1 button works as the <C> key to adjust the camera in Pinball FX2, again without re-programming.


DOFLinx
Contributions for equipment to help with ongoing DOFLinx development can be made here

#4 Avi

Avi

    Enthusiast

  • Members
  • PipPipPip
  • 65 posts

  • Flag: Chile

  • Favorite Pinball: Avengers

Posted 21 August 2016 - 08:29 PM

I do not understand well that is achieved with this

 
The end result is ....
 
The Start button and Plunger both work as the <ENTER> key when I run Pinball FX2 without re-programming my iPac. Pinball FX2 uses <ENTER> to start the game, pull the plunger and confirm entry of initials, I didn't want to always be pulling the plunger for <ENTER>.  Also, the Coin 1 button works as the <C> key to adjust the camera in Pinball FX2, again without re-programming.


thanks .. the Spanish translator English confuses me sometimes
there a way to end the process pinballX Pinball FX2 once the balls are finished . and again pinballX table selection





Also tagged with one or more of these keywords: DOFFX2