To assign a Switch to Buttons you will have to use two Joystickbuttons:
One for the On and One for the Off-Position of the switch.
Example: Assign PAUSE / UNPAUSE to a Switch Panel switch
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<BaseEvent xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" BoundTo="SWITCH_COWL" isEnabled="true" xmlns="http://www.fsgs.com/SPAD">
<EventValues>
<EventValue xsi:type="SPADJoystickEventValue" Key="VALUEON" Value="0" ConfigID="VIRTUAL_JOYSTICK" ReadOnly="false" Joystick="64" Button="0" />
<EventValue xsi:type="SPADJoystickEventValue" Key="VALUEOFF" Value="0" ConfigID="VIRTUAL_JOYSTICK" ReadOnly="false" Joystick="64" Button="1" />
</EventValues>
</BaseEvent>