Git Product home page Git Product logo

msfs2020-simconnect-go's Introduction

msfs2020-simconnect-go

This is a Golang interface for Microsoft Flight Simulator 2020 (MSFS2020 ) using SimConnect.

Installation

$ go get github.com/grumpypixel/msfs2020-simconnect-go

Does it work?

Yes, it does. This package was created to power the msfs2020-gopilot.

Please note that this interface is not complete, but a lot of the SimConnect functionality has been implemented.

Where's the Documentation?

Check out the official SimConnect API Reference.

Apart from that, there's no other documenation at the moment. Since this is still work in progress the code is your friend.

So go ahead and have a look at the file defs.go which is, more or less, the transfused code from SimConnect.h.

Any Examples?

At the time of writing, there are two simple examples available.

Example #1 shows the basic SimConnect interface. With this approach, you will need to manage all simulation variables, requests etc. yourself. This is most likely what you want.

Example #2 shows how to use the SimMate, a convenience class where the management of SimVars is handled for you. This encapsulation works for the GoPilot above mentioned, but it may not work for you. Just build your own - which is awesome because this package might get inspired by your creation and improvements.

SimMate? Seriously?

Because I didn't want to call it Something Something Manager, that's why.

Do you suffer from naming paralysis from time to time?

Yes. Way too often. But names do matter. And sometimes a stupid name is better than no name at all.

Nonetheless.

Cheers and Happy coding!

msfs2020-simconnect-go's People

Contributors

grumpypixel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

toorop evenaa

msfs2020-simconnect-go's Issues

Event handling

Hello !
Thanks for this great library, brilliant!
Do you know how can I handle sending event to the simulator ?

Best regards,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.