<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<floater
 legacy_header_height="18"
 height="500"
 layout="topleft"
 name="Joystick"
 help_topic="joystick"
 title="Joystick Configuration"
 width="569">
    <floater.string
     name="JoystickDisabled">
        None
    </floater.string>
    <text
     type="string"
     layout="topleft"
     follows="left|top"
     halign="left"
     height="12"
     top="22"
     left="14"
     width="50"
     mouse_opaque="false"
     name="joystick_lbl">
      Joystick:
    </text>
    <combo_box
     allow_text_entry="false"
     follows="left|top"
     layout="topleft"
     name="joystick_combo"
     top="19"
     left_pad="4"
     width="300"/>
    <spinner
     bottom="56"
     height="10"
     control_name="JoystickAxis1"
     decimal_digits="0"
     increment="1"
     label="X Axis Mapping"
     label_width="100"
     layout="topleft"
     left="20"
     max_val="5"
     min_val="-1"
     name="JoystickAxis1"
     width="140" />
    <spinner
     bottom_delta="0"
     height="10"     
     control_name="JoystickAxis2"
     decimal_digits="0"
     increment="1"
     label="Y Axis Mapping"
     label_width="100"
     layout="topleft"
     left="190"
     max_val="5"
     min_val="-1"
     name="JoystickAxis2"
     width="140" />
    <spinner
     bottom_delta="0"
     height="10"     
     control_name="JoystickAxis0"
     decimal_digits="0"
     increment="1"
     label="Z Axis Mapping"
     label_width="100"
     layout="topleft"
     left="360"
     max_val="5"
     min_val="-1"
     name="JoystickAxis0"
     width="140" />
    <spinner
     bottom="76"
     height="10"     
     control_name="JoystickAxis4"
     decimal_digits="0"
     increment="1"
     label="Pitch Mapping"
     label_width="100"
     layout="topleft"
     left="20"
     max_val="5"
     min_val="-1"
     name="JoystickAxis4"
     width="140" />
    <spinner
     bottom_delta="0"
     height="10"     
     control_name="JoystickAxis5"
     decimal_digits="0"
     increment="1"
     label="Yaw Mapping"
     label_width="100"
     layout="topleft"
     left="190"
     max_val="5"
     min_val="-1"
     name="JoystickAxis5"
     width="140" />
    <spinner
     bottom_delta="0"
     height="10"     
     control_name="JoystickAxis3"
     decimal_digits="0"
     increment="1"
     label="Roll Mapping"
     label_width="100"
     layout="topleft"
     left="360"
     max_val="5"
     min_val="-1"
     name="JoystickAxis3"
     width="140" />
    <spinner
     bottom="96"
     height="10"     
     control_name="JoystickAxis6"
     decimal_digits="0"
     increment="1"
     label="Zoom Mapping"
     label_width="100"
     layout="topleft"
     left="20"
     max_val="5"
     min_val="-1"
     name="JoystickAxis6"
     width="140" />
    <check_box
     bottom_delta="18"
     height="10"
     control_name="ZoomDirect"
     label="Direct Zoom"
     layout="topleft"
     left="185"
     name="ZoomDirect"
     width="60" />
    <check_box
     bottom_delta="0"
     height="10"     
     control_name="Cursor3D"
     label="3D Cursor"
     layout="topleft"
     left="310"
     name="Cursor3D"
     width="60" />
    <check_box
     bottom_delta="0"
     height="10"     
     control_name="AutoLeveling"
     label="Auto Level"
     layout="topleft"
     left="420"
     name="AutoLeveling"
     width="60" />
    <text
     type="string"
     length="1"
     follows="left|top"
     halign="right"
     height="10"
     layout="topleft"
     left="37"
     mouse_opaque="false"
     name="Control Modes:"
     top="118"
     width="102">
        Control Modes:
    </text>
    <check_box
     bottom="134"
     height="10"     
     control_name="JoystickAvatarEnabled"
     halign="center"
     label="Avatar"
     layout="topleft"
     left="150"
     name="JoystickAvatarEnabled"
     width="60" />
    <check_box
     bottom_delta="0"
     height="10"     
     control_name="JoystickBuildEnabled"
     halign="center"
     label="Build"
     layout="topleft"
     left="219"
     name="JoystickBuildEnabled"
     width="60" />
    <check_box
     bottom_delta="0"
     height="10"     
     control_name="JoystickFlycamEnabled"
     halign="center"
     label="Flycam"
     layout="topleft"
     left="289"
     name="JoystickFlycamEnabled"
     width="60" />

    <!-- <FS:Zi> FIRE-14344 - Add button preview and allow for more than 6 axes -->
    <text
     follows="all"
     halign="center"
     height="16"
     layout="topleft"
     left="350"
     name="joystick_monitor_label"
     top="116"
     width="210">
      Joystick Monitor
    </text>

    <icon image_name="lag_status_good.tga" height="10" left_delta="10" name="button_light_0"  width="10" tool_tip="Joystick Button 0"  top_pad="2" />
    <icon image_name="lag_status_good.tga" height="10" left_pad="1"    name="button_light_1"  width="10" tool_tip="Joystick Button 1"  />
    <icon image_name="lag_status_good.tga" height="10" left_pad="1"    name="button_light_2"  width="10" tool_tip="Joystick Button 2"  />
    <icon image_name="lag_status_good.tga" height="10" left_pad="1"    name="button_light_3"  width="10" tool_tip="Joystick Button 3"  />

    <icon image_name="lag_status_good.tga" height="10" left_pad="4"    name="button_light_4"  width="10" tool_tip="Joystick Button 4"  />
    <icon image_name="lag_status_good.tga" height="10" left_pad="1"    name="button_light_5"  width="10" tool_tip="Joystick Button 5"  />
    <icon image_name="lag_status_good.tga" height="10" left_pad="1"    name="button_light_6"  width="10" tool_tip="Joystick Button 6"  />
    <icon image_name="lag_status_good.tga" height="10" left_pad="1"    name="button_light_7"  width="10" tool_tip="Joystick Button 7"  />

    <icon image_name="lag_status_good.tga" height="10" left_pad="4"    name="button_light_8"  width="10" tool_tip="Joystick Button 8"  />
    <icon image_name="lag_status_good.tga" height="10" left_pad="1"    name="button_light_9"  width="10" tool_tip="Joystick Button 9"  />
    <icon image_name="lag_status_good.tga" height="10" left_pad="1"    name="button_light_10" width="10" tool_tip="Joystick Button 10" />
    <icon image_name="lag_status_good.tga" height="10" left_pad="1"    name="button_light_11" width="10" tool_tip="Joystick Button 11" />

    <icon image_name="lag_status_good.tga" height="10" left_pad="4"    name="button_light_12" width="10" tool_tip="Joystick Button 12" />
    <icon image_name="lag_status_good.tga" height="10" left_pad="1"    name="button_light_13" width="10" tool_tip="Joystick Button 13" />
    <icon image_name="lag_status_good.tga" height="10" left_pad="1"    name="button_light_14" width="10" tool_tip="Joystick Button 14" />
    <icon image_name="lag_status_good.tga" height="10" left_pad="1"    name="button_light_15" width="10" tool_tip="Joystick Button 15" />

    <scroll_container
     height="270"
     name="joystick_monitor_axes_scroller"
     top_pad="3"
     left="350"
     width="211">

    <container_view
     background_visible="false"
     follows="all"
     name="joystick_monitor_axes_container"
     width="196">

    <!-- Zi: One stat_view for each axis so we can hide them individually -->
    <stat_view
     name="axis_view_0"
     show_label="false">
      <stat_bar
       bar_max="2"
       bar_min="-2"
       show_bar="true"
       label="Axis 0"
       layout="topleft"
       left="0"
       name="axis0"
       tick_spacing="0.5"
       top="20"
       width="0" />
    </stat_view>

    <stat_view
     name="axis_view_1"
     show_label="false">
      <stat_bar
       bar_max="2"
       bar_min="-2"
       show_bar="true"
       label="Axis 1"
       layout="topleft"
       left="0"
       name="axis1"
       tick_spacing="0.5"
       top="20"
       width="0" />
    </stat_view>

    <stat_view
     name="axis_view_2"
     show_label="false">
      <stat_bar
       bar_max="2"
       bar_min="-2"
       show_bar="true"
       label="Axis 2"
       layout="topleft"
       left="0"
       name="axis2"
       tick_spacing="0.5"
       top="20"
       width="0" />
    </stat_view>

    <stat_view
     name="axis_view_3"
     show_label="false">
      <stat_bar
       bar_max="2"
       bar_min="-2"
       show_bar="true"
       label="Axis 3"
       layout="topleft"
       left="0"
       name="axis3"
       tick_spacing="0.5"
       top="20"
       width="0" />
    </stat_view>

    <stat_view
     name="axis_view_4"
     show_label="false">
      <stat_bar
       bar_max="2"
       bar_min="-2"
       show_bar="true"
       label="Axis 4"
       layout="topleft"
       left="0"
       name="axis4"
       tick_spacing="0.5"
       top="20"
       width="0" />
    </stat_view>

    <stat_view
     name="axis_view_5"
     show_label="false">
      <stat_bar
       bar_max="2"
       bar_min="-2"
       show_bar="true"
       label="Axis 5"
       layout="topleft"
       left="0"
       name="axis5"
       tick_spacing="0.5"
       top="20"
       width="0" />
    </stat_view>

    <stat_view
     name="axis_view_6"
     show_label="false">
      <stat_bar
       bar_max="2"
       bar_min="-2"
       show_bar="true"
       label="Axis 6"
       layout="topleft"
       left="0"
       name="axis6"
       tick_spacing="0.5"
       top="20"
       width="0" />
    </stat_view>

    <stat_view
     name="axis_view_7"
     show_label="false">
      <stat_bar
       bar_max="2"
       bar_min="-2"
       show_bar="true"
       label="Axis 7"
       layout="topleft"
       left="0"
       name="axis7"
       tick_spacing="0.5"
       top="20"
       width="0" />
    </stat_view>

    </container_view>
    </scroll_container>
    <!-- </FS:Zi> -->

    <text
     type="string"
     length="1"
     bottom="152"
     halign="right"
     layout="topleft"
     left="3"
     name="XScale"
     width="140">
        X Scale
    </text>
    <spinner
     bottom_delta="0"
     height="10"     
     control_name="AvatarAxisScale1"
     decimal_digits="2"
     label_width="0"
     layout="topleft"
     left="150"
     max_val="50"
     min_val="-50"
     name="AvatarAxisScale1"
     width="56" />
    <spinner
     bottom_delta="0"
     height="10"     
     control_name="BuildAxisScale1"
     decimal_digits="2"
     label_width="0"
     layout="topleft"
     left="220"
     max_val="1024"
     min_val="-1024"
     name="BuildAxisScale1"
     width="56" />
    <spinner
     bottom_delta="0"
     height="10"     
     control_name="FlycamAxisScale1"
     decimal_digits="2"
     label_width="0"
     layout="topleft"
     left="290"
     max_val="1024"
     min_val="-1024"
     name="FlycamAxisScale1"
     width="56" />
    <text
     type="string"
     length="1"
     bottom="172"
     halign="right"
     layout="topleft"
     left="3"
     name="YScale"
     width="140">
        Y Scale
    </text>
    <spinner
     bottom_delta="0"
     height="10"     
     control_name="AvatarAxisScale2"
     decimal_digits="2"
     label_width="0"
     layout="topleft"
     left="150"
     max_val="50"
     min_val="-50"
     name="AvatarAxisScale2"
     width="56" />
    <spinner
     bottom_delta="0"
     height="10"     
     control_name="BuildAxisScale2"
     decimal_digits="2"
     label_width="0"
     layout="topleft"
     left="220"
     max_val="1024"
     min_val="-1024"
     name="BuildAxisScale2"
     width="56" />
    <spinner
     bottom_delta="0"
     height="10"     
     control_name="FlycamAxisScale2"
     decimal_digits="2"
     label_width="0"
     layout="topleft"
     left="290"
     max_val="1024"
     min_val="-1024"
     name="FlycamAxisScale2"
     width="56" />
    <text
     type="string"
     length="1"
     bottom="192"
     halign="right"
     layout="topleft"
     left="3"
     name="ZScale"
     width="140">
        Z Scale
    </text>
    <spinner
     bottom_delta="0"
     height="10"     
     control_name="AvatarAxisScale0"
     decimal_digits="2"
     label_width="0"
     layout="topleft"
     left="150"
     max_val="50"
     min_val="-50"
     name="AvatarAxisScale0"
     width="56" />
    <spinner
     bottom_delta="0"
     height="10"     
     control_name="BuildAxisScale0"
     decimal_digits="2"
     label_width="0"
     layout="topleft"
     left="220"
     max_val="1024"
     min_val="-1024"
     name="BuildAxisScale0"
     width="56" />
    <spinner
     bottom_delta="0"
     height="10"     
     control_name="FlycamAxisScale0"
     decimal_digits="2"
     label_width="0"
     layout="topleft"
     left="290"
     max_val="1024"
     min_val="-1024"
     name="FlycamAxisScale0"
     width="56" />
    <text
     type="string"
     length="1"
     bottom="212"
     halign="right"
     layout="topleft"
     left="3"
     name="PitchScale"
     width="140">
        Pitch Scale
    </text>
    <spinner
     bottom_delta="0"
     height="10"     
     control_name="AvatarAxisScale4"
     decimal_digits="2"
     label_width="0"
     layout="topleft"
     left="150"
     max_val="1024"
     min_val="-1024"
     name="AvatarAxisScale4"
     width="56" />
    <spinner
     bottom_delta="0"
     height="10"     
     control_name="BuildAxisScale4"
     decimal_digits="2"
     label_width="0"
     layout="topleft"
     left="220"
     max_val="1024"
     min_val="-1024"
     name="BuildAxisScale4"
     width="56" />
    <spinner
     bottom_delta="0"
     height="10"     
     control_name="FlycamAxisScale4"
     decimal_digits="2"
     label_width="0"
     layout="topleft"
     left="290"
     max_val="1024"
     min_val="-1024"
     name="FlycamAxisScale4"
     width="56" />
    <text
     type="string"
     length="1"
     bottom="232"
     halign="right"
     layout="topleft"
     left="3"
     name="YawScale"
     width="140">
        Yaw Scale
    </text>
    <spinner
     bottom_delta="0"
     height="10"
     control_name="AvatarAxisScale5"
     decimal_digits="2"
     label_width="0"
     layout="topleft"
     left="150"
     max_val="1024"
     min_val="-1024"
     name="AvatarAxisScale5"
     width="56" />
    <spinner
     bottom_delta="0"
     height="10"
     control_name="BuildAxisScale5"
     decimal_digits="2"
     label_width="0"
     layout="topleft"
     left="220"
     max_val="1024"
     min_val="-1024"
     name="BuildAxisScale5"
     width="56" />
    <spinner
     bottom_delta="0"
     height="10"
     control_name="FlycamAxisScale5"
     decimal_digits="2"
     label_width="0"
     layout="topleft"
     left="290"
     max_val="1024"
     min_val="-1024"
     name="FlycamAxisScale5"
     width="56" />
    <text
     type="string"
     length="1"
     bottom="252"
     halign="right"
     layout="topleft"
     left="3"
     name="RollScale"
     width="140">
        Roll Scale
    </text>
    <spinner
     bottom_delta="0"
     height="10"
     control_name="BuildAxisScale3"
     decimal_digits="2"
     label_width="0"
     layout="topleft"
     left="220"
     max_val="1024"
     min_val="-1024"
     name="BuildAxisScale3"
     width="56" />
    <spinner
     bottom_delta="0"
     height="10"
     control_name="FlycamAxisScale3"
     decimal_digits="2"
     label_width="0"
     layout="topleft"
     left="290"
     max_val="1024"
     min_val="-1024"
     name="FlycamAxisScale3"
     width="56" />
    <text
     type="string"
     length="1"
     bottom="282"
     halign="right"
     layout="topleft"
     left="3"
     name="XDeadZone"
     width="140">
        X Dead Zone
    </text>
    <spinner
     bottom_delta="0"
     height="10"
     control_name="AvatarAxisDeadZone1"
     decimal_digits="2"
     increment="0.01"
     label_width="0"
     layout="topleft"
     left="150"
     name="AvatarAxisDeadZone1"
     width="56" />
    <spinner
     bottom_delta="0"
     height="10"
     control_name="BuildAxisDeadZone1"
     decimal_digits="2"
     increment="0.01"
     label_width="0"
     layout="topleft"
     left="220"
     name="BuildAxisDeadZone1"
     width="56" />
    <spinner
     bottom_delta="0"
     height="10"
     control_name="FlycamAxisDeadZone1"
     decimal_digits="2"
     increment="0.01"
     label_width="0"
     layout="topleft"
     left="290"
     name="FlycamAxisDeadZone1"
     width="56" />
    <text
     type="string"
     length="1"
     bottom="302"
     halign="right"
     layout="topleft"
     left="3"
     name="YDeadZone"
     width="140">
        Y Dead Zone
    </text>
    <spinner
     bottom_delta="0"
     height="10"     
     control_name="AvatarAxisDeadZone2"
     decimal_digits="2"
     increment="0.01"
     label_width="0"
     layout="topleft"
     left="150"
     name="AvatarAxisDeadZone2"
     width="56" />
    <spinner
     bottom_delta="0"
     height="10"
     control_name="BuildAxisDeadZone2"
     decimal_digits="2"
     increment="0.01"
     label_width="0"
     layout="topleft"
     left="220"
     name="BuildAxisDeadZone2"
     width="56" />
    <spinner
     bottom_delta="0"
     height="10"
     control_name="FlycamAxisDeadZone2"
     decimal_digits="2"
     increment="0.01"
     label_width="0"
     layout="topleft"
     left="290"
     name="FlycamAxisDeadZone2"
     width="56" />
    <text
     type="string"
     length="1"
     bottom="322"
     halign="right"
     layout="topleft"
     left="3"
     name="ZDeadZone"
     width="140">
        Z Dead Zone
    </text>
    <spinner
     bottom_delta="0"
     height="10"
     control_name="AvatarAxisDeadZone0"
     decimal_digits="2"
     increment="0.01"
     label_width="0"
     layout="topleft"
     left="150"
     name="AvatarAxisDeadZone0"
     width="56" />
    <spinner
     bottom_delta="0"
     height="10"
     control_name="BuildAxisDeadZone0"
     decimal_digits="2"
     increment="0.01"
     label_width="0"
     layout="topleft"
     left="220"
     name="BuildAxisDeadZone0"
     width="56" />
    <spinner
     bottom_delta="0"
     height="10"
     control_name="FlycamAxisDeadZone0"
     decimal_digits="2"
     increment="0.01"
     label_width="0"
     layout="topleft"
     left="290"
     name="FlycamAxisDeadZone0"
     width="56" />
    <text
     type="string"
     length="1"
     bottom="342"
     halign="right"
     layout="topleft"
     left="2"
     name="PitchDeadZone"
     width="140">
        Pitch Dead Zone
    </text>
    <spinner
     bottom_delta="0"
     height="10"
     control_name="AvatarAxisDeadZone4"
     decimal_digits="2"
     increment="0.01"
     label_width="0"
     layout="topleft"
     left="150"
     name="AvatarAxisDeadZone4"
     width="56" />
    <spinner
     bottom_delta="0"
     height="10"
     control_name="BuildAxisDeadZone4"
     decimal_digits="2"
     increment="0.01"
     label_width="0"
     layout="topleft"
     left="220"
     name="BuildAxisDeadZone4"
     width="56" />
    <spinner
     bottom_delta="0"
     height="10"
     control_name="FlycamAxisDeadZone4"
     decimal_digits="2"
     increment="0.01"
     label_width="0"
     layout="topleft"
     left="290"
     name="FlycamAxisDeadZone4"
     width="56" />
    <text
     type="string"
     length="1"
     bottom="362"
     halign="right"
     layout="topleft"
     left="3"
     name="YawDeadZone"
     width="140">
        Yaw Dead Zone
    </text>
    <spinner
     bottom_delta="0"
     height="10"
     control_name="AvatarAxisDeadZone5"
     decimal_digits="2"
     increment="0.01"
     label_width="0"
     layout="topleft"
     left="150"
     name="AvatarAxisDeadZone5"
     width="56" />
    <spinner
     bottom_delta="0"
     height="10"
     control_name="BuildAxisDeadZone5"
     decimal_digits="2"
     increment="0.01"
     label_width="0"
     layout="topleft"
     left="220"
     name="BuildAxisDeadZone5"
     width="56" />
    <spinner
     bottom_delta="0"
     height="10"
     control_name="FlycamAxisDeadZone5"
     decimal_digits="2"
     increment="0.01"
     label_width="0"
     layout="topleft"
     left="290"
     name="FlycamAxisDeadZone5"
     width="56" />
    <text
     type="string"
     length="1"
     bottom="382"
     halign="right"
     layout="topleft"
     left="3"
     name="RollDeadZone"
     width="140">
        Roll Dead Zone
    </text>
    <spinner
     bottom_delta="0"
     height="10"
     control_name="BuildAxisDeadZone3"
     decimal_digits="2"
     increment="0.01"
     label_width="0"
     layout="topleft"
     left="220"
     name="BuildAxisDeadZone3"
     width="56" />
    <spinner
     bottom_delta="0"
     height="10"
     control_name="FlycamAxisDeadZone3"
     decimal_digits="2"
     increment="0.01"
     label_width="0"
     layout="topleft"
     left="290"
     name="FlycamAxisDeadZone3"
     width="56" />
    <text
     type="string"
     length="1"
     bottom="410"
     halign="right"
     layout="topleft"
     left="3"
     name="Feathering"
     width="140">
        Feathering
    </text>
    <slider
     control_name="AvatarFeathering"
     decimal_digits="0"
     follows="left|top"
     height="16"
     increment="1"
     initial_value="0.7"
     layout="topleft"
     left="141"
     max_val="32"
     min_val="1"
     name="AvatarFeathering"
     show_text="false"
     top="410"
     width="73" />
    <slider
     control_name="BuildFeathering"
     decimal_digits="0"
     follows="left|top"
     height="16"
     increment="1"
     initial_value="0.7"
     layout="topleft"
     left_delta="70"
     max_val="32"
     min_val="1"
     name="BuildFeathering"
     show_text="false"
     top_delta="0"
     width="73" />
    <slider
     control_name="FlycamFeathering"
     decimal_digits="0"
     follows="left|top"
     height="16"
     increment="1"
     initial_value="0.7"
     layout="topleft"
     left_delta="70"
     max_val="32"
     min_val="1"
     name="FlycamFeathering"
     show_text="false"
     top_delta="0"
     width="73" />
    <text
     type="string"
     length="1"
     bottom="438"
     halign="right"
     layout="topleft"
     left="3"
     name="ZoomScale2"
     width="140">
        Zoom Scale
    </text>
    <spinner
     bottom_delta="0"
     height="10"
     control_name="FlycamAxisScale6"
     decimal_digits="2"
     label_width="0"
     layout="topleft"
     left="290"
     max_val="1024"
     min_val="-1024"
     name="FlycamAxisScale6"
     width="56" />
    <text
     type="string"
     length="1"
     bottom="458"
     halign="right"
     layout="topleft"
     left="3"
     name="ZoomDeadZone"
     width="140">
        Zoom Dead Zone
    </text>
    <spinner
     bottom_delta="0"
     height="10"
     control_name="FlycamAxisDeadZone6"
     decimal_digits="2"
     increment="0.01"
     label_width="0"
     layout="topleft"
     left="290"
     name="FlycamAxisDeadZone6"
     width="56" />
    <button
     follows="left|top"
     height="22"
     label="SpaceNavigator Defaults"
     layout="topleft"
     left="359"
     name="SpaceNavigatorDefaults"
     top="437"
     width="200" />
    <button
     follows="right|bottom"
     height="20"
     label="OK"
     label_selected="OK"
     layout="topleft"
     left_delta="0"
     name="ok_btn"
     top_pad="9"
     width="98" />
    <button
     follows="right|bottom"
     height="20"
     label="Cancel"
     label_selected="Cancel"
     layout="topleft"
     left_pad="4"
     name="cancel_btn"
     top_delta="0"
     width="98" />
</floater>
