The Pedigree Project 0.1
kernel/machine/mach_virt/Keyboard.h
1/*
2 * Copyright (c) 2026, Pedigree Developers
3 *
4 * Permission to use, copy, modify, and distribute this software for any
5 * purpose with or without fee is hereby granted.
6 */
7
8#ifndef KERNEL_MACHINE_VIRT_KEYBOARD_H
9#define KERNEL_MACHINE_VIRT_KEYBOARD_H
10
11#include "pedigree/kernel/machine/Keyboard.h"
12
13class VirtSerial;
14
16class VirtKeyboard : public Keyboard {
17 public:
18 explicit VirtKeyboard(VirtSerial& serial);
19 void initialise() override;
20 void setDebugState(bool enabled) override;
21 bool getDebugState() override;
22 char getChar() override;
23 char getCharNonBlock() override;
24
25 private:
26 VirtSerial& m_Serial;
27 bool m_DebugState;
28};
29
30#endif
char getChar() override
char getCharNonBlock() override
void setDebugState(bool enabled) override
void initialise() override