Cosmos/source/Cosmos.HAL2/KeyboardBase.cs
2018-06-28 21:59:42 +01:00

20 lines
567 B
C#

namespace Cosmos.HAL
{
public abstract class KeyboardBase : Device
{
/// <summary>
/// Initialize the device. Happens before the interrupt is registered, ie before the class is being used.
/// </summary>
public abstract void Initialize();
public abstract void UpdateLeds();
public delegate void KeyPressedEventHandler(byte ScanCode, bool Released);
public KeyPressedEventHandler OnKeyPressed;
public static void WaitForKey()
{
Core.Global.CPU.Halt();
}
}
}