mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 04:18:43 +00:00
24 lines
800 B
C#
24 lines
800 B
C#
using Cosmos.Debug.Kernel;
|
|
|
|
namespace Cosmos.System
|
|
{
|
|
// This class exists purely for testing purposes.
|
|
/// <summary>
|
|
/// Testing helpers class.
|
|
/// </summary>
|
|
internal static class TestingHelpers
|
|
{
|
|
/// <summary>
|
|
/// Add fake scan codes to the keyboard, fake pressing keys.
|
|
/// Used to test kernals.
|
|
/// </summary>
|
|
/// <param name="aScanCode">A key code.</param>
|
|
/// <param name="aReleased">Is key pressed.</param>
|
|
internal static void KeyboardAddFakeScanCode(byte aScanCode, bool aReleased)
|
|
{
|
|
Global.mDebugger.Send("Before HandleFakeScanCode");
|
|
KeyboardManager.HandleFakeScanCode(aScanCode, aReleased);
|
|
Global.mDebugger.Send("After HandleFakeScanCode");
|
|
}
|
|
}
|
|
}
|