Cosmos/source/Cosmos.HAL2/KeyboardBase.cs
Valentin Charbonnier 94a6bd68aa Revert "Merge branch 'master' into master"
This reverts commit 0e00eedcc2, reversing
changes made to 15086f1909.
2018-08-05 18:08:13 +02: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();
}
}
}