Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.
By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.
<Click Kind="LeftSingle+LeftDrag">
(M:X) (>L:Init_Click_X, number)
(M:Y) (>L:Init_Click_Y, number)
</Click>
<!-- In pixels relative to parent object/gauge background -->
<Macro Name="Cushion">20</Macro>
<Macro Name="Cushion">20</Macro>
<Mouse>
<Click Kind="LeftSingle+LeftDrag">
<!-- Get Initials -->
(M:Event) 'LeftSingle' scmp 0 ==
if{ (M:X) (>L:Init_Click_X, number) (M:Y) (>L:Init_Click_Y, number) }
<!-- Do the comparisons and apply -->
els{ (M:Event) 'LeftDrag' scmp 0 == if{
<!-- Swipe left -->
(M:X) @Cushion + (L:Init_Click_X, number) < if{ DO MY LEFT SWIPE STUFF }
<!-- Swipe right -->
(M:X) @Cushion - (L:Init_Click_X, number) > if{ DO MY RIGHT SWIPE STUFF }
<!-- Swipe down -->
(M:Y) @Cushion + (L:Init_Click_Y, number) < if{ DO MY DOWN SWIPE STUFF }
<!-- Swipe up -->
(M:Y) @Cushion - (L:Init_Click_Y, number) > if{ DO MY UP SWIPE STUFF }
<!-- End comparison els -->
} }
</Click>
</Mouse>
Left Drag means left-mouse-button-drag... and right drag means 'right-mouse-button-drag' movements. Not exactly the same as dragging the mouse with the left click button, left, across the screen, or right, across the screen, meaning from left to right (for right drag) and right to left (for left drag). Same for up and down dragging. So, no... not the same.
This would be where you click on the area on the gauge, and make a left-mouse-button-down-click (drag) motion, either up, down, left, or right motion, of any amount, in that zone, and it would trigger an enum code string.
<PartInfo>
<Name>KA350i_lever_mixture0</Name>
<Copy>KA350i_lever_mixture_both</Copy>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>
(L:GENERAL ENG MIXTURE LEVER POSITION:1,enum)
</Code>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipText>L Cond %((L:GENERAL ENG MIXTURE LEVER POSITION:1,enum))%!d!</TooltipText>
<MouseFlags>LeftSingle+LeftDrag+MoveRepeat+Wheel</MouseFlags>
<CallbackCode>
(M:Event) 'LeftSingle' scmp 0 !=
if{
(L:ConditionLeftX, position) s0 0 !=
if{
(L:GENERAL ENG MIXTURE LEVER POSITION:1,enum) (M:X) l0 <
if{ 2 + 100 min } els{ l0 (M:X) < if{ 2 - 0 max } }
(>L:GENERAL ENG MIXTURE LEVER POSITION:1,enum)
}
}
(M:X) (>L:ConditionLeftX, position)
(M:Event) 'WheelDown' scmp 0 !=
if{ (L:GENERAL ENG MIXTURE LEVER POSITION:1,enum) ++ (>L:GENERAL ENG MIXTURE LEVER POSITION:1,enum) }
(M:Event) 'WheelUp' scmp 0 !=
if{ (L:GENERAL ENG MIXTURE LEVER POSITION:1,enum) -- (>L:GENERAL ENG MIXTURE LEVER POSITION:1,enum) }
</CallbackCode>
</MouseRect>
</PartInfo>