Archived

This topic is now archived and is closed to further replies.

n4gix

[P3Dv2] <EventID> no longer works... :(

Recommended Posts

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

// 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:

    <MouseRect>
      <Cursor>Hand</Cursor>
      <MouseFlags>LeftSingle</MouseFlags>
      <EventID>0x11009</EventID>
    </MouseRect>
However, this does work (assuming we have an event handler)

    <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?

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

I already did just that, Ed. Still no answer though. In any case, I thought I'd post the results here in case anyone else has been wondering why the <EventID> method apparently isn't working, and a viable workaround.

Share this post


Link to post
Share on other sites