steam-deck-tools/CommonHelpers/GlobalConfig.cs

76 lines
1.6 KiB
C#
Raw Normal View History

using System.Runtime.InteropServices;
namespace CommonHelpers
{
public enum FanMode : uint
{
Default = 17374,
Silent,
SteamOS,
Max
}
public enum KernelDriversLoaded : uint
{
Yes = 4363232,
No
}
public enum OverlayMode : uint
{
FPS = 10032,
2022-11-16 20:39:21 +01:00
FPSWithBattery,
Battery,
Minimal,
Detail,
Full
}
public enum OverlayEnabled : uint
{
Yes = 378313,
No
}
2022-11-20 15:42:21 +01:00
public enum PowerControlVisible : uint
{
Yes = 371313,
No
}
[StructLayout(LayoutKind.Sequential)]
public struct FanModeSetting
{
public FanMode Current, Desired;
public KernelDriversLoaded KernelDriversLoaded;
}
[StructLayout(LayoutKind.Sequential)]
public struct OverlayModeSetting
{
public OverlayMode Current, Desired;
public OverlayEnabled CurrentEnabled, DesiredEnabled;
public KernelDriversLoaded KernelDriversLoaded;
public KernelDriversLoaded DesiredKernelDriversLoaded;
}
2022-11-20 15:42:21 +01:00
[StructLayout(LayoutKind.Sequential)]
public struct PowerControlSetting
{
public PowerControlVisible Current;
}
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct SteamControllerSetting
{
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 128)]
public String CurrentProfile;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 2048)]
public String SelectableProfiles;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 128)]
public String DesiredProfile;
}
}