diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2023-05-09 15:34:38 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-05-09 15:34:38 +0200 |
| commit | 780aca2622d907320a1cf462390f192fb3ae4b31 (patch) | |
| tree | c7843a5ebe0620d8f97ae7ba86ba6f5d06ffc167 /x-plane-plugin/plugin.c | |
| parent | c1de1499775d47a574bd52d07acbb269845fb75b (diff) | |
| parent | 051fb2f94f6364b80219a3c671bb953d2e54a140 (diff) | |
Merge branch 'master' into trackhat-sensor-v2
Diffstat (limited to 'x-plane-plugin/plugin.c')
| -rw-r--r-- | x-plane-plugin/plugin.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/x-plane-plugin/plugin.c b/x-plane-plugin/plugin.c index ed72e50e..e43ee0ef 100644 --- a/x-plane-plugin/plugin.c +++ b/x-plane-plugin/plugin.c @@ -134,6 +134,8 @@ static int TrackToggleHandler(XPLMCommandRef inCommand, XPLMCommandPhase inPhase, void* inRefCon) { + if (inPhase != xplm_CommandBegin) return 0; + if (track_disabled) { //Enable @@ -156,6 +158,8 @@ static int TranslationToggleHandler(XPLMCommandRef inCommand, XPLMCommandPhase inPhase, void* inRefCon) { + if (inPhase != xplm_CommandBegin) return 0; + translation_disabled = !translation_disabled; if (!translation_disabled) { |
