Initial setup of the models and view models

This commit is contained in:
Robert committed 2026-01-23 21:15:58 +01:00
1 parent 46511022d6
commit 3004293051
38 files changed
+807 -61

No files matched your search

@@ -24,6 +24,9 @@ internal class InputService : IInputService
_deviceService.DeviceRemoved += DeviceServiceOnDevicesModified;
BustIdentifierCache();
}
public int CursorX { get; private set; }
public int CursorY { get; private set; }
protected virtual void OnKeyboardKeyUpDown(ArtemisKeyboardKeyUpDownEventArgs e)
{
@@ -426,6 +429,9 @@ internal class InputService : IInputService
private void InputProviderOnMouseMoveDataReceived(object? sender, InputProviderMouseMoveEventArgs e)
{
CursorX = e.CursorX;
CursorY = e.CursorY;
OnMouseMove(new ArtemisMouseMoveEventArgs(e.Device, e.CursorX, e.CursorY, e.DeltaX, e.DeltaY));
// _logger.Verbose("Mouse move data: XY: {X},{Y} - delta XY: {deltaX},{deltaY} - device: {device} ", e.CursorX, e.CursorY, e.DeltaX, e.DeltaY, e.Device);
}
@@ -12,6 +12,16 @@ public interface IInputService : IArtemisService, IDisposable
/// </summary>
KeyboardToggleStatus KeyboardToggleStatus { get; }
/// <summary>
/// Gets the last reported cursor X position
/// </summary>
public int CursorX { get; }
/// <summary>
/// Gets the last reported cursor Y position
/// </summary>
public int CursorY { get; }
/// <summary>
/// Adds an input provided
/// </summary>