msfs-simconnect-api-wrapper
Advanced tools
Comparing version 2.0.4 to 2.1.0
@@ -0,1 +1,6 @@ | ||
v2.1 | ||
- added fuel variables. They were missing despite the readme saying they were implemented. | ||
- added a catch for unknown vars so the code doesn't actually crash. | ||
v2.0.1 | ||
@@ -2,0 +7,0 @@ |
@@ -204,9 +204,13 @@ import { | ||
handle.mapClientEventToSimEvent(eventID, triggerName); | ||
handle.transmitClientEvent( | ||
SimConnectConstants.OBJECT_ID_USER, | ||
eventID, | ||
value, | ||
1, // highest priority | ||
16 // group id is priority | ||
); | ||
try { | ||
handle.transmitClientEvent( | ||
SimConnectConstants.OBJECT_ID_USER, | ||
eventID, | ||
value, | ||
1, // highest priority | ||
16 // group id is priority | ||
); | ||
} catch (e) { | ||
console.warn(e); | ||
} | ||
} | ||
@@ -213,0 +217,0 @@ |
{ | ||
"name": "msfs-simconnect-api-wrapper", | ||
"version": "2.0.4", | ||
"version": "2.1.0", | ||
"description": "A convenient SimConnect API for playing with Microsoft Flight Simulator 2020", | ||
@@ -5,0 +5,0 @@ "main": "msfs-api.js", |
@@ -9,2 +9,3 @@ // See https://docs.flightsimulator.com/html/Programming_Tools/SimVars/Simulation_Variables.htm | ||
import { AircraftFlightModelVariables } from "./aircraft-flight-model-variables.js"; | ||
import { AircraftFuelVariables } from "./aircraft-fuel-variables.js"; | ||
import { AircraftMiscVariables } from "./aircraft-misc-variables.js"; | ||
@@ -19,2 +20,3 @@ import { AircraftRadioNavigationVariables } from "./aircraft-radio-navigation-variables.js"; | ||
const SimVars = { | ||
@@ -27,2 +29,3 @@ ...AircraftAutopilotAssistantVariables, | ||
...AircraftFlightModelVariables, | ||
...AircraftFuelVariables, | ||
...AircraftMiscVariables, | ||
@@ -29,0 +32,0 @@ ...AircraftRadioNavigationVariables, |
@@ -93,1 +93,2 @@ import { SimConnectDataType } from "node-simconnect"; | ||
export const MillimetersOfWater = { units: `millimeters of water` }; | ||
export const KiloPascal = { units: `kilopascal` }; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
230899
26
6947