From ec6b686e225c15cce81a9995cca6e5011db93c5e Mon Sep 17 00:00:00 2001 From: Even Rognlien Date: Tue, 27 Feb 2024 19:32:44 +0100 Subject: [PATCH] Fix inconsistent increment/decrement when setting input events Fixes #99 --- src/SimConnectConnection.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SimConnectConnection.ts b/src/SimConnectConnection.ts index 6ecdfdf..53a9646 100644 --- a/src/SimConnectConnection.ts +++ b/src/SimConnectConnection.ts @@ -1615,7 +1615,7 @@ class SimConnectConnection extends EventEmitter { if (typeof value === 'string') { packet.putInt32(value.length).putString(value); } else { - packet.putInt32(4).putFloat32(value); + packet.putInt32(8).putFloat64(value); } return this._buildAndSend(packet);