
Internally, VPE connects switches to events. The actual switch device, and which switch of that device should be connected to the gamelogic engine.įinally, if Constant is selected, you choose the value that will be permanently set at the beginning of the game. If the source is a Device, then there are two values to select. Actions may have default key bindings, but the final bindings to a key or other input will be defined in the host application (the VPE player). If Input System is selected, you choose which input action to use (it's an "action", because it's not an permanent key binding). We realize that you might want to use other game items like ramps and walls to emit switch events as well, and we will address this at some point, but for now we're keeping it simple. bumpers, flippers, gates, targets, kickers, spinners and triggers. Currently, VPE only emits switch events for items that would do so in real life, i.e. The Element column is where you choose which element triggers the switch.įor Playfield sources, you can choose a game item that triggers switch events. Switch devices are mechanisms that include multiple switches, for example troughs.

The first, the dropdown value, is the ID that VPE will use to identify the switch.The first column ID shows the names of each switch that the gamelogic engine is aware of. The relation between the two is 0.n -> 0.n, meaning you can link multiple switches to one input or a single switch to multiple inputs. Imagine every row as a wire connecting the physical switch to the gamelogic engine. You can open the switch manager under Visual Pinball -> Switch Manager. If you've named them appropriately it can even guess which switch maps to which game item.
#Switchmanager code#
Wiring these switches up to the gamelogic engine with code can be a tedious process, so VPE provides a graphical interface where you can do it easily. These switches are also built into targets, bumpers, kickers, and other mechanisms (see Supported Game Mechanisms below). For that, real pinball tables have switches on the playfield that signal when a ball rolls over or settles in a certain position. VPE's switch manager lets you hook up the switches of the playfield to the gamelogic engine.ĭuring gameplay, the gamelogic engine needs to know what is happening on the playfield.
