21#include "pedigree/kernel/machine/Device.h"
22#include "pedigree/kernel/machine/HidInputManager.h"
23#include "pedigree/kernel/machine/KeymapManager.h"
24#include "pedigree/kernel/machine/Machine.h"
27#include "pedigree/kernel/debugger/Debugger.h"
29#if TRACK_PAGE_ALLOCATIONS
30#include "pedigree/kernel/debugger/commands/AllocationCommand.h"
35#include "pedigree/kernel/debugger/commands/SlamCommand.h"
38#include "pedigree/kernel/core/SlamAllocator.h"
40namespace __pedigree_hosted {};
41using namespace __pedigree_hosted;
47HostedKeyboard::HostedKeyboard() : m_bDebugState(false) {
51 while (read(0, buf, 64) == 64)
56HostedKeyboard::~HostedKeyboard() {}
62 t.c_lflag &= ~(ICANON | ECHO);
63 tcsetattr(0, TCSAFLUSH, &t);
73 ssize_t n = read(0, buf, 1);
86 ssize_t n = read(0, buf, 1);
96bool HostedKeyboard::getDebugState() {
106void HostedKeyboard::blocking(
bool enable) {
107 int flags = fcntl(0, F_GETFL);
112 flags &= ~O_NONBLOCK;
115 fcntl(0, F_SETFL, flags);
bool m_bDebugState
True if we're in debug state.
virtual char getLedState()
virtual void setLedState(char state)
virtual void setDebugState(bool enableDebugState)
virtual void initialise()
virtual char getCharNonBlock()