namespace Cosmos.HAL
{
public abstract class KeyboardBase : Device
{
///
/// Initialize the device. Happens before the interrupt is registered, ie before the class is being used.
///
public abstract void Initialize();
///
/// Update keyboard LEDs.
///
public abstract void UpdateLeds();
public delegate void KeyPressedEventHandler(byte ScanCode, bool Released);
public KeyPressedEventHandler OnKeyPressed;
///
/// Wait for key to be pressed.
///
public static void WaitForKey()
{
Core.Global.CPU.Halt();
}
}
}