Cosmos/source/Cosmos.System/TestingHelpers.cs
Matthijs ter Woord 0b5490a281 Ongoing changes.
2015-08-18 20:19:36 +02:00

19 lines
586 B
C#

using Cosmos.Debug.Kernel;
namespace Cosmos.System
{
// This class exists purely for testing purposes.
internal static class TestingHelpers
{
internal static void KeyboardAddFakeScanCode(byte aScanCode, bool aReleased)
{
Debugger.DoSend("Before HandleFakeScanCode");
if (HAL.Global.Keyboard == null)
{
Debugger.DoSend("No Keyboard set!");
}
HAL.Global.Keyboard.HandleFakeScanCode(aScanCode, aReleased);
Debugger.DoSend("After HandleFakeScanCode");
}
}
}