I'm having a bit of trouble, i'm trying to do a 3 way, spring loaded switch where you have to hold the mouse button down to get the action. The switch i have thanks to n4gix
it works fine, however you have to left/right click every time you want to inc/dec the prop pitch, when i want it so you have to hold the switch in the inc or dec posistion. I've tried changing to left drag/right drag, left all/right all etc but i've got a very strong feeling i'm doing it completly wrong
Anyone feeling kind enough to point me in the right direction?
Code:
<PartInfo>
<Name>switch_prop_1</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>50 (L:switch_prop_1,enum) 50 * +</Code>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipText>Eng1 Prop RPM Switch</TooltipText>
<MouseFlags>LeftSingle+Leftrelease+RightSingle+RightRelease</MouseFlags>
<CallbackCode>
(M:Event) 'LeftSingle' scmp 0 ==
if{ 1 (>L:switch_prop_1, enum) (>K:PROP_PITCH1_INCR) }
(M:Event) 'LeftRelease' scmp 0 ==
if{ 0 (>L:switch_prop_1, enum) }
(M:Event) 'RightSingle' scmp 0 ==
if{ -1 (>L:switch_prop_1, enum) (>K:PROP_PITCH1_DECR) }
(M:Event) 'RightRelease' scmp 0 ==
if{ 0 (>L:switch_prop_1, enum) }
</CallbackCode>
</MouseRect>
</PartInfo>
it works fine, however you have to left/right click every time you want to inc/dec the prop pitch, when i want it so you have to hold the switch in the inc or dec posistion. I've tried changing to left drag/right drag, left all/right all etc but i've got a very strong feeling i'm doing it completly wrong
Anyone feeling kind enough to point me in the right direction?


