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
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now