Current SPAD.neXt Release: 0.9.12.123

This forum has closed. Please join our Discord Community.

SPAD.neXt online services are no longer available for SPAD.neXt Versions < 0.9.11.5

HOWTO: Assign Virtual Joystick Buttons

Frequently asked Questions
Locked
User avatar
c0nnex
Site Admin
Posts: 5469
Joined: 10 Mar 2015, 21:52
Location: Munich, Germany
Contact:
Status: Offline

HOWTO: Assign Virtual Joystick Buttons

Post by c0nnex » 20 Jun 2015, 12:18

When you assign a Virtual Joystick Button to a Switch or Pushbutton, SPAD.neXt will always send a Click and one second later a Release event to FSUIPC.
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>
Configuration in FSUIPC:
pon.PNG
pon.PNG (67.19 KiB) Viewed 5096 times
poff.PNG
poff.PNG (58.75 KiB) Viewed 5096 times

Locked