mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2025-12-06 07:12:01 +01:00
26 lines
586 B
C#
26 lines
586 B
C#
using System.Diagnostics;
|
|
using System.Runtime.InteropServices;
|
|
using SteamController.Helpers;
|
|
|
|
namespace SteamController.Managers
|
|
{
|
|
public sealed class SASManager : Manager
|
|
{
|
|
internal static bool Valid { get; set; }
|
|
|
|
public override void Tick(Context context)
|
|
{
|
|
Valid = GetCursorPos(out var _);
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
private struct POINT
|
|
{
|
|
public int X, Y;
|
|
}
|
|
|
|
[DllImport("user32.dll")]
|
|
private static extern bool GetCursorPos(out POINT lpPoint);
|
|
}
|
|
}
|