SimConnect Events Issue

Poloche
Posts: 7
Joined: Mon Mar 10, 2014 6:18 pm

SimConnect Events Issue

Postby Poloche » Tue Dec 11, 2018 2:59 am

Hello,

I am trying to associate P3D events with timestamps in a excel sheet. However, it seems that some flags do not change:

For example, I am using the PAUSE_TOGGLE event and the PARKING_BRAKES event, but when I keep pausing and unpausing, or turning on and off the parking brakes, I always get the 0 value:

https://imgur.com/a/Evg6UWO

I am pretty sure that it happens with other events too. Is there a way to go around this issue?

Thanks for your help,

Sebastien.

obinder
Posts: 99
Joined: Sun Jun 08, 2014 9:43 am

Re: SimConnect Events Issue

Postby obinder » Tue Dec 11, 2018 6:25 am

Hi,

generally speaking, events don't return a value. They are "things happening", representations of key presses, not variables.

PARKING BRAKE is just a toggle event. No matter what value you send with the event, it will always just toggle the parking brake to the other state. To get the actual value (=if the parking brake is set or not), you must query the simulator variable BRAKE PARKING POSITION. Oh, and the aircraft that you are using the event on must acutally have a parking brake.

PAUSE is a system event. You query the current state with SimConnect_SubscribeToSystemEvent.


Best regards
Oliver Binder
Lorby-SI


Return to “SimConnect Interface Questions”

Who is online

Users browsing this forum: No registered users and 3 guests