Hi,
I am using SimConnect with MSFS2020.
I am capturing keypresses using the technique from the sample InputEvent, only modified for C#.
Issue:
For a single keypress, SimConnect receives 5 or 6 (or more) events from MSFS.
I have verified this using FSUIPC logging.
I have tried to remove notifications when processing the first event but it has no effect on arriving events.
I am currently using a time based block where I ignore the events for a couple of seconds after the first one arrives.
This is a nasty solution as sometimes the user may want to press the key again and the block then impedes them. ;-(
Does anyone have a suggestion on a proper way to stop, or better deal with, the multiple keypress events?
Thanks
Rob
I am using SimConnect with MSFS2020.
I am capturing keypresses using the technique from the sample InputEvent, only modified for C#.
Issue:
For a single keypress, SimConnect receives 5 or 6 (or more) events from MSFS.
I have verified this using FSUIPC logging.
I have tried to remove notifications when processing the first event but it has no effect on arriving events.
I am currently using a time based block where I ignore the events for a couple of seconds after the first one arrives.
This is a nasty solution as sometimes the user may want to press the key again and the block then impedes them. ;-(
Does anyone have a suggestion on a proper way to stop, or better deal with, the multiple keypress events?
Thanks
Rob