Skip to content

Commit

Permalink
Merge pull request antonpup#2051 from gitmacer/LocalPCInfoMousePosition
Browse files Browse the repository at this point in the history
Add cursor position to Local pc info "GSI" data
  • Loading branch information
diogotr7 authored May 30, 2020
2 parents 847692d + d6129c6 commit 329baa8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Project-Aurora/Project-Aurora/Profiles/LocalPCInformation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,11 @@ private MMDevice DefaultAudioInDevice {
public NETInfo NET => _netInfo ?? (_netInfo = new NETInfo());
#endregion

#region Cursor Position
private static CursorPositionNode _cursorPosition;
public CursorPositionNode CursorPosition => _cursorPosition ?? (_cursorPosition = new CursorPositionNode());
#endregion

/// <summary>
/// Returns whether or not the device dession is in a locked state.
/// </summary>
Expand Down Expand Up @@ -218,4 +223,10 @@ public class NETInfo : Node
public float UploadSpeed => HardwareMonitor.NET.UploadSpeedBytes;
public float DownloadSpeed => HardwareMonitor.NET.DownloadSpeedBytes;
}

public class CursorPositionNode : Node
{
public float X => System.Windows.Forms.Cursor.Position.X;
public float Y => System.Windows.Forms.Cursor.Position.Y;
}
}

0 comments on commit 329baa8

Please sign in to comment.