Essgee.Unity/Assets/Plugins/Essgee/EventArguments/PollInputEventArgs.cs

27 lines
572 B
C#
Raw Normal View History

2025-01-02 17:55:16 +08:00
using Essgee.Utilities.XInput;
using System;
using System.Collections.Generic;
namespace Essgee.EventArguments
{
public class PollInputEventArgs : EventArgs
{
public IEnumerable<MotionKey> Keyboard { get; set; }
2025-01-02 17:55:16 +08:00
public MouseButtons MouseButtons { get; set; }
public (int X, int Y) MousePosition { get; set; }
public ControllerState ControllerState { get; set; }
public PollInputEventArgs()
{
Keyboard = new List<MotionKey>();
2025-01-02 17:55:16 +08:00
MouseButtons = MouseButtons.None;
MousePosition = (0, 0);
ControllerState = new ControllerState();
}
}
}