<Gauge Name="THROTTLE QUAD" Version="1.0">
   <Image Name="THROTTLE_BACK.bmp" ImageSizes="231,336"/>

   <Element>
      <Image Name="Left_Throttle.bmp" ImageSizes="102,203">
         <Axis X="80" Y="0"/>
      </Image>
      <Shift>
         <Value Minimum="0" Maximum="1">(A:general eng1 throttle lever position,part) (A:Throttle lower limit,part) /-/ + b 1 + /</Value>
         <Nonlinearity>
            <Item Value="0" X="100" Y="100"/>
            <Item Value="1" X="100" Y="6"/>
         </Nonlinearity>
      </Shift>
   </Element>

   <Element>
      <Image Name="RIGHT_Throttle.bmp" ImageSizes="102,203">
         <Axis X="18" Y="0"/>
      </Image>
      <Shift>
         <Value Minimum="0" Maximum="1">(A:general eng1 throttle lever position,part) (A:Throttle lower limit,part) /-/ + b 1 + /</Value>
         <Nonlinearity>
            <Item Value="0" X="130" Y="100"/>
            <Item Value="1" X="130" Y="6"/>
         </Nonlinearity>
      </Shift>
   </Element>


   <Mouse>
      <Help ID="HELPID_GAUGE_ENGINE_CONTROLS"/>
      <Macro Name="ThrottleMouseClick">(M:Y)  (*Get Y*) 30 - (*skip top runof*) 103 / (*divide by running height*) 0 max 1 min (*into [0-1]*) 1 - /-/ (*from bttom to top*) 1 (A:Throttle lower limit,part) s0 - * l0 + (*apply lower limit*) 16384.0 * (*KEY_THROTTLE1_SET requires 16k*) </Macro>
      <Area Left="0" Right="80" Top="12" Bottom="325">

         <Cursor Type="Hand"/>
         <Click Kind="LeftSingle+LeftDrag">@ThrottleMouseClick (&gt;K:THROTTLE1_SET)</Click>
      </Area>

      <Area Left="80" Right="140" Top="12" Bottom="325">
         <Cursor Type="Hand"/>
         <Click Kind="LeftSingle+LeftDrag">@ThrottleMouseClick d (&gt;K:THROTTLE1_SET) (&gt;K:THROTTLE2_SET)</Click>
      </Area>
      <Area Left="140" Right="220" Top="12" Bottom="325">
         <Cursor Type="Hand"/>
         <Click Kind="LeftSingle+LeftDrag">@ThrottleMouseClick (&gt;K:THROTTLE2_SET)</Click>
      </Area>

   </Mouse>



</Gauge>