1
0
Fork 0
mirror of https://github.com/hawkeye-stan/msfs-popout-panel-manager.git synced 2024-11-22 05:40:11 +00:00
msfs-popout-panel-manager/SimconnectAgent/Enums.cs
2022-07-23 15:23:32 -04:00

58 lines
1.2 KiB
C#

using System;
using System.Runtime.InteropServices;
using System.Text;
namespace MSFSPopoutPanelManager.SimConnectAgent
{
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct ClientDataValue
{
public float data;
}
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct ClientDataString
{
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 1024)]
public byte[] data;
public ClientDataString(string strData)
{
byte[] txtBytes = Encoding.ASCII.GetBytes(strData);
var ret = new byte[1024];
Array.Copy(txtBytes, ret, txtBytes.Length);
data = ret;
}
}
//public enum SIMCONNECT_DATA_DEFINITION
//{
// SIMCONNECT_DATA_STRUCT
//}
public enum SIMCONNECT_DATA_DEFINITION_TOUCHPANEL
{
SIMCONNECT_DATA_STRUCT_TOUCHPANEL
}
public enum DATA_REQUEST
{
REQUEST_1
}
public enum NotificationGroup
{
GROUP0
}
public enum SimConnectSystemEvent
{
FOURSECS,
SIMSTART,
SIMSTOP,
FLIGHTLOADED,
PAUSED,
VIEW,
NONE
};
}