August 24, 201411 yr Hi everyone, I would like to control CDU buttons by SDK of NGX. Now I can control all buttons normally except CLR button. I use these method: ...... int parameter=0; hr = SimConnect_MapClientEventToSimEvent(hSimConnect,EVENT_CDU_L_CLR, "#70234"); if (parameter) parameter=1; else parameter=0; SimConnect_TransmitClientEvent(hSimConnect, 0, EVENT_CDU_L_CLR, 1, SIMCONNECT_GROUP_PRIORITY_HIGHEST, SIMCONNECT_EVENT_FLAG_GROUPID_IS_PRIORITY); ...... If I push CLR button via SDK quickly, it clears one character in scratch pad line first, then all characters disappear. It seems like I hold the CLR button for a while. But I just want to delete one character. I have tried the other method to send CLR button to NGX but nothing changed. Do you have any ideal? Thanks! Wei
August 24, 201411 yr I'm not very code savvy so you may have implemented this above, but are you sending the key up command after the key press command, perhaps that is why it is acting like it is being held? I know the developer of the VRinsight CDU2 has the exact same problem with the SDK's for NGX and 777, even with the iFly 737 it does the same thing. Cheers, Andy.
August 24, 201411 yr Author I'm not very code savvy so you may have implemented this above, but are you sending the key up command after the key press command, perhaps that is why it is acting like it is being held? I know the developer of the VRinsight CDU2 has the exact same problem with the SDK's for NGX and 777, even with the iFly 737 it does the same thing. Thanks a lot! Actually I have the same problem with 777X too. I tried some method to find the key up command but failed. Did the developer of the VRinsight CDU2 solved the problem eventually? Regards Wei There is a little issue above. if (parameter) parameter=0; else parameter=1; But it is not the reason...
August 24, 201411 yr No unfortunately not that I am aware of, thats why I suggested the above. Perhaps some of this below may be worth a try if you know how to use it. // // PMDG 777X external connection SDK ///////////////////////////////////////////////////////////////// // Control Values ///////////////////////////////////////////////////////////////// // Mouse flags for mouse click simulation MOUSE_FLAG_RIGHTSINGLE 2147483648 //0x80000000 MOUSE_FLAG_MIDDLESINGLE 1073741824 //0x40000000 MOUSE_FLAG_LEFTSINGLE 536870912 //0x20000000 MOUSE_FLAG_RIGHTDOUBLE 268435456 //0x10000000 MOUSE_FLAG_MIDDLEDOUBLE 134217728 //0x08000000 MOUSE_FLAG_LEFTDOUBLE 67108864 //0x04000000 MOUSE_FLAG_RIGHTDRAG 33554432 //0x02000000 MOUSE_FLAG_MIDDLEDRAG 16777216 //0x01000000 MOUSE_FLAG_LEFTDRAG 8388608 //0x00800000 MOUSE_FLAG_MOVE 4194304 //0x00400000 MOUSE_FLAG_DOWN_REPEAT 2097152 //0x00200000 MOUSE_FLAG_RIGHTRELEASE 524288 //0x00080000 MOUSE_FLAG_MIDDLERELEASE 262144 //0x00040000 MOUSE_FLAG_LEFTRELEASE 131072 //0x00020000 MOUSE_FLAG_WHEEL_FLIP 65536 //0x00010000 // invert direction of mouse wheel MOUSE_FLAG_WHEEL_SKIP 32768 //0x00008000 // look at next 2 rect for mouse wheel commands MOUSE_FLAG_WHEEL_UP 16384 //0x00004000 MOUSE_FLAG_WHEEL_DOWN 8192 //0x00002000 I'm thinking sending this; MOUSE_FLAG_LEFTSINGLE 536870912 Then this; MOUSE_FLAG_LEFTRELEASE 131072 May achieve what you want, I am probably wrong though. There is more on the page below if you are interested in looking. http://www.vrinsight.com/devel_shot Some of the 777 SDK just doesn't work at all, one example is the aircon temperature dials; EVT_OH_AIRCOND_TEMP_SELECTOR_FLT_DECK (69771) EVT_OH_AIRCOND_TEMP_SELECTOR_CABIN (69772) The second one works fine 69772 but the first one doesn't 69771. Cheers, Andy.
August 24, 201411 yr Author No unfortunately not that I am aware of, thats why I suggested the above. Perhaps some of this below may be worth a try if you know how to use it. // // PMDG 777X external connection SDK ///////////////////////////////////////////////////////////////// // Control Values ///////////////////////////////////////////////////////////////// // Mouse flags for mouse click simulation MOUSE_FLAG_RIGHTSINGLE 2147483648 //0x80000000 MOUSE_FLAG_MIDDLESINGLE 1073741824 //0x40000000 MOUSE_FLAG_LEFTSINGLE 536870912 //0x20000000 MOUSE_FLAG_RIGHTDOUBLE 268435456 //0x10000000 MOUSE_FLAG_MIDDLEDOUBLE 134217728 //0x08000000 MOUSE_FLAG_LEFTDOUBLE 67108864 //0x04000000 MOUSE_FLAG_RIGHTDRAG 33554432 //0x02000000 MOUSE_FLAG_MIDDLEDRAG 16777216 //0x01000000 MOUSE_FLAG_LEFTDRAG 8388608 //0x00800000 MOUSE_FLAG_MOVE 4194304 //0x00400000 MOUSE_FLAG_DOWN_REPEAT 2097152 //0x00200000 MOUSE_FLAG_RIGHTRELEASE 524288 //0x00080000 MOUSE_FLAG_MIDDLERELEASE 262144 //0x00040000 MOUSE_FLAG_LEFTRELEASE 131072 //0x00020000 MOUSE_FLAG_WHEEL_FLIP 65536 //0x00010000 // invert direction of mouse wheel MOUSE_FLAG_WHEEL_SKIP 32768 //0x00008000 // look at next 2 rect for mouse wheel commands MOUSE_FLAG_WHEEL_UP 16384 //0x00004000 MOUSE_FLAG_WHEEL_DOWN 8192 //0x00002000 I'm thinking sending this; MOUSE_FLAG_LEFTSINGLE 536870912 Then this; MOUSE_FLAG_LEFTRELEASE 131072 May achieve what you want, I am probably wrong though. There is more on the page below if you are interested in looking. http://www.vrinsight.com/devel_shot Some of the SDK just doesn't work at all, one example is the aircon temperature dials; EVT_OH_AIRCOND_TEMP_SELECTOR_FLT_DECK (69771) EVT_OH_AIRCOND_TEMP_SELECTOR_CABIN (69772) The second one works fine 69772 but the first one doesn't 69771. Thank you very much! I will try this and reply you if it works!
Create an account or sign in to comment