Custom EventIDs Not Working...

SDK supports Prepar3D’s philosophy of an open development architecture and encourages third parties to bring new innovations with improved add-ons and training content.
Locked
N4GIX
Posts: 617
Joined: Wed Dec 08, 2010 6:52 pm

Post by N4GIX »

Previously, we had the ability to create and use Custom EventIDs in this range:

Code:
// Third parties can use custom events in this range to communicate between 3D VC's and 2D C++ gauges.
#define THIRD_PARTY_EVENT_ID_MIN 0x00011000
#define THIRD_PARTY_EVENT_ID_MAX 0x0001FFFF

I've notice that this no longer seems to work:

Code:
<MouseRect>
<Cursor>Hand</Cursor>
<MouseFlags>LeftSingle</MouseFlags>
<EventID>0x11009</EventID>
</MouseRect>

However, this does work (assuming we have an event handler)

Code:
<MouseRect>
<Cursor>Hand</Cursor>
<MouseFlags>LeftSingle</MouseFlags>
<CallbackCode>
(M:Event) 'LeftSingle' scmp 0 == if{ 0x11009 (>L:EVENT, bool) }
</CallbackCode>
</MouseRect>

Is there something in Prepar3D v2 that is failing to recognize these via the <EventID> tokens?
Bill Leaming
Modeler and Programmer
Military Visualizations
N4GIX
Posts: 617
Joined: Wed Dec 08, 2010 6:52 pm

Post by N4GIX »

*BUMP*
Bill Leaming
Modeler and Programmer
Military Visualizations
Locked