Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Hello working on an .net C# program. But run in a issue. I cant figure out how to use the Mouse flag right single because if i try to use it give a error cannont convert from uint to int when use it in a SendControlToFS function.

Posted

You can just cast it to an int. It'll be the same bit pattern as the uint when it gets to FSUIPC:

Declared as uint...

 private readonly uint MOUSE_FLAG_RIGHTSINGLE = 0x80000000;

Cast to int for the SendControlToFS method...

FSUIPCConnection.SendControlToFS(PMDG_737_NGX_Control.EVT_MCP_CMD_A_SWITCH, (int)MOUSE_FLAG_RIGHTSINGLE);

Paul

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.