1
0
Fork 0
mirror of https://github.com/hawkeye-stan/msfs-popout-panel-manager.git synced 2024-11-25 07:10:10 +00:00
msfs-popout-panel-manager/SimconnectAgent/Enums.cs

65 lines
1.3 KiB
C#
Raw Normal View History

2022-07-23 19:23:32 +00:00
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,
2022-08-01 23:21:42 +00:00
AIRCRAFTLOADED,
2022-07-23 19:23:32 +00:00
PAUSED,
VIEW,
NONE
2022-08-02 15:51:28 +00:00
}
public enum SystemStateRequestId
{
AIRCRAFTPATH
}
2022-07-23 19:23:32 +00:00
}