777ipod Posted February 27, 2021 Report Posted February 27, 2021 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.
Paul Henty Posted February 27, 2021 Report Posted February 27, 2021 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now