D
Deleted member 1281
Guest
Hi! I want to use the water rudder command (Ctrl-W) to do other things. The default def in modeldef.xml is this:
Now instead of EventId ... /EventId I would like to use (as I understand one has to)
But already the single toggle doesn't seem to work -??
Any pointers greatly appreciated!
Code:
<PartInfo>
<Name>lever_water_rudder</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Sim>
<Variable>WATER RUDDER HANDLE POSITION</Variable>
<Units>percent</Units>
</Sim>
<Lag>100</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<HelpID>HELPID_GAUGE_WATER_RUDDER_LEVER</HelpID>
<TooltipID>TOOLTIPTEXT_WATER_RUDDER_HANDLE</TooltipID>
<EventID>TOGGLE_WATER_RUDDER</EventID>
</MouseRect>
</PartInfo>
Now instead of EventId ... /EventId I would like to use (as I understand one has to)
<CallbackCode>
(>K:TOGGLE_WATER_RUDDER)
... plus the desired custom suite of key events
</CallbackCode>
But already the single toggle doesn't seem to work -??
Any pointers greatly appreciated!