mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-09 10:26:32 +00:00
19 lines
495 B
C#
19 lines
495 B
C#
using Artemis.Core.Services;
|
|
|
|
namespace Artemis.Core.Tests.Infrastructure.Services;
|
|
|
|
/// <summary>
|
|
/// An input provider the test presses keys on, the real providers hook into the operating system
|
|
/// </summary>
|
|
public class TestInputProvider : InputProvider
|
|
{
|
|
/// <summary>
|
|
/// Presses and releases the key
|
|
/// </summary>
|
|
public void Press(KeyboardKey key)
|
|
{
|
|
OnKeyboardDataReceived(null, key, true);
|
|
OnKeyboardDataReceived(null, key, false);
|
|
}
|
|
}
|