Sequal32 / simconnect-rust

SimConnect bindings for rust.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

crates.io

SimConnect Bindings for Rust

Requirements

Using

Add this to your Cargo.toml

[dependencies]
simconnect = "0.3.1"

Building

The SimConnect binaries are included within this repository, but they may not be up-to-date.

  1. run cargo build
  2. Add use simconnect at the top of your file

Example

Read float position data

cargo run --example aircraft_updates

Requests tagged data with thresholds from SimConnect and reads floats/strings

cargo run --example aircraft_updates_on_change

You must have SimConnect.dll in the same directory as the compiled exe for it to run (e.g. in )

Remarks

I have not tested every single function from the api. If you find an error, feel free to make an issue or a pull request.

About

SimConnect bindings for rust.

License:MIT License


Languages

Language:Rust 51.7%Language:C++ 48.3%