Skip to content

PMDG CDU Clr Button strange behaviour #105

Closed Answered by ksi9302
ksi9302 asked this question in Q&A
Discussion options

You must be logged in to vote

Okay, answering my own question.

TLDR;

Send mouse down action then mouse release action.

    handle.transmitClientEvent(
      SimConnectConstants.OBJECT_ID_USER,
      MyEventID.CDU_CLR,
      0x20000000,
      0,
      EventFlag.EVENT_FLAG_GROUPID_IS_PRIORITY
    );

    handle.transmitClientEvent(
      SimConnectConstants.OBJECT_ID_USER,
      MyEventID.CDU_CLR,
      0x00020000,
      0,
      EventFlag.EVENT_FLAG_GROUPID_IS_PRIORITY
    );

While desperately trying to find a clue, I've noticed that a parameter can be one of the MOUSE_FLAG which simulates mouse actions. // see SDK.h

Since buttons like Clr, and Menu has special function when long pressed, the default parameter 1 will …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@EvenAR
Comment options

@ksi9302
Comment options

Answer selected by ksi9302
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants