mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Input - Added mouse support
Input - Added device identification
This commit is contained in:
1 parent
810db36191
commit
84918f2d5b
22 files changed
+1309
-271
No files matched your search
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
|
||||
namespace Artemis.Core.Services
|
||||
{
|
||||
/// <summary>
|
||||
/// Contains data for input provider mouse button events
|
||||
/// </summary>
|
||||
public class InputProviderMouseButtonEventArgs : EventArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// </summary>
|
||||
/// <param name="device">The device that triggered the event</param>
|
||||
/// <param name="button">The button that triggered the event</param>
|
||||
/// <param name="isDown">Whether the button is pressed down</param>
|
||||
public InputProviderMouseButtonEventArgs(ArtemisDevice? device, MouseButton button, bool isDown)
|
||||
{
|
||||
Device = device;
|
||||
Button = button;
|
||||
IsDown = isDown;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the device that triggered the event
|
||||
/// </summary>
|
||||
public ArtemisDevice? Device { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the button that triggered the event
|
||||
/// </summary>
|
||||
public MouseButton Button { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets whether the button is pressed down
|
||||
/// </summary>
|
||||
public bool IsDown { get; }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user