n4gix
Resource contributor
- Messages
- 11,674
- Country

Good grief, but this 3d XML script for GPS control is a stone-cold PITA!
After finally managing to get it working (sort of), now I find that some of the key_events are either screwed up, or simply don't work at all...
For example, here's what should be pretty straight forward:
Should work, right? Nope! the pages will increase with no problem, but the DECREASE simply doesn't work!
Okay, how about the Flight Plan? This you would expect to display the Flight Plan page, right?
Oh no! It turns on the TERRAIN color display!
These are completely broken. They do nothing at all:
G1000_MFD_MSG_BUTTON
G1000_MFD_OBS_BUTTON
After finally managing to get it working (sort of), now I find that some of the key_events are either screwed up, or simply don't work at all...
For example, here's what should be pretty straight forward:
Code:
<PartInfo>
<Name>GPS2_PageKnob</Name>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipText>Page Knob</TooltipText>
<MouseFlags>LeftSingle+RightSingle+Wheel</MouseFlags>
<CallbackCode>
(M:Event) 'LeftSingle' scmi 0 == if{ (>K:G1000_MFD_PAGE_KNOB_DEC) }
(M:Event) 'RightSingle' scmi 0 == if{ (>K:G1000_MFD_PAGE_KNOB_INC) }
(M:Event) 'WheelUp' scmi 0 == if{ (>K:G1000_MFD_PAGE_KNOB_INC) }
(M:Event) 'WheelDown' scmi 0 == if{ (>K:G1000_MFD_PAGE_KNOB_DEC) }
</CallbackCode>
</MouseRect>
</PartInfo>
Should work, right? Nope! the pages will increase with no problem, but the DECREASE simply doesn't work!
Okay, how about the Flight Plan? This you would expect to display the Flight Plan page, right?
Code:
<PartInfo>
<Name>GPS2_FPL_BUTTON</Name>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipText>Flight Plan</TooltipText>
<CallbackCode>(>K:G1000_MFD_FLIGHTPLAN_BUTTON)</CallbackCode>
</MouseRect>
</PartInfo>
Oh no! It turns on the TERRAIN color display!
These are completely broken. They do nothing at all:
G1000_MFD_MSG_BUTTON
G1000_MFD_OBS_BUTTON
