This article covers the following platforms
MSFS 2024
MSFS 2020
ATS
FSX
Prepar3D
Use the Command API to inspect the Flow Wheel’s on-screen location and visibility.
get_wheel_location()
Get the Flow Wheel’s on-screen position in pixels.
SignatureTypeScript contract
get_wheel_location(): [number, number]ExampleJavaScript
const [x, y] = this.$api.command.get_wheel_location();
console.log({ x, y });Returns
[number, number]Flow Wheel x and y position in pixels.get_wheel_state()
Check whether the Flow Wheel is visible.
SignatureTypeScript contract
get_wheel_state(): booleanExampleJavaScript
const isVisible = this.$api.command.get_wheel_state();
console.log(isVisible);Returns
booleanWhether the Flow Wheel is currently visible.