July 15, 20232 yr Hi, So been knocking around with this and my google-fu isn't good enough to see the answer.... I'm trying to set up a Bravo gear lever with the new inbuilt events but I'm missing something as it's not working for me. I set up the button for gear down - key down event #70087 (EVT_GEAR_LEVER) with a value of 2 for down and 0 for up. I can watch the "receiving events from simulator" window and see either 0(>K:#70087) or 2(>K:#70087) show up so I believe it's making it to the sim, but there's no action on the gear handle. Not sure exactly what I'm missing. The only reference to the values I can see is the line in the SDK unsigned char MAIN_GearLever; // 0: UP 1: OFF 2: DOWN but that doesn't happen. Not sure what I'm missing? Thanks for pointers, Edited July 15, 20232 yr by Peter Clark
July 15, 20232 yr Author 1 minute ago, Dazzlercee23 said: Have you got a space between 0 and (, and 2 and (? Hi, No - I'm trying to use the inbuilt PMDG SDK triggers;
July 15, 20232 yr I've just checked my PMDG settings for gear and I use the standard events: Key Down Event: GEAR_UP (Sets gear handle in the UP position) Key Up Event: GEAR_DOWN (Sets gear handle in the DOWN position) This is on the TCA Yoke that has a gear lever that operates a single switch, either ON (key down) or OFF (key up).
July 15, 20232 yr Commercial Member Which sim are we talking about, MSFS or P3D? And what PMDG plane is that? These PMDG SDK events often expect the (also PMDG SDK) mouse codes: 536870912 (>K:#70087) 2147483648 (>K:#70087) Edited July 15, 20232 yr by Lorby_SI LORBY-SI
July 15, 20232 yr Author Hi, Ah, that’s probably what I was missing. This is the 800 in MSFS. I’ll give it a shot when I get back to a computer. Thanks!
July 15, 20232 yr Author OK, so that does work. I guess I was misinterpreting the PMDG SDK; "Example 1: Sending a value via the numeric parameter will tell the simulation to place the switch/knob/lever/control into a specific position. All values below 8192 are treated as a numeric position to which the item being controlled should be placed. You can determine the positions of various knobs by looking up in the PMDG_NG3_SDK.h file. Boolean parameters have no position information listed, but non Boolean parameters will include position information in the comments following the variable declaration: unsigned char ELEC_BatSelector; // 0: OFF 1: BAT 2: ON " figuring that it would work the same for unsigned char MAIN_GearLever; // 0: UP 1: OFF 2: DOWN Thanks again!
July 15, 20232 yr Commercial Member 14 minutes ago, Peter Clark said: All values below 8192 are treated as a numeric position to which the item being controlled should be placed. As the default simulator gear events are working, maybe nobody ever noticed that this event doesn't work that way. Edited July 15, 20232 yr by Lorby_SI LORBY-SI
Archived
This topic is now archived and is closed to further replies.