Jump to content
Sign in to follow this  
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?

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Share this post


Link to post
Share on other sites

Wouldn't it be better to ask L-M??


Ed Wilson

Mindstar Aviation
My Playland - I69

Share this post


Link to post
Share on other sites

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.


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...