22 PPCKeyboard::PPCKeyboard() : m_Dev(0)
26 PPCKeyboard::~PPCKeyboard()
34 m_Dev = chosen.getProperty(
"stdin");
44 "read", 3, m_Dev, reinterpret_cast<OFParam>(c),
45 reinterpret_cast<OFParam>(4)) != 0)
47 if ((c[0] <
' ' || c[0] >
'~') && c[0] !=
'\r' && c[0] != 0x08 &&
66 "read", 3, m_Dev, reinterpret_cast<OFParam>(c),
67 reinterpret_cast<OFParam>(4)) != 0)
69 if ((c[0] <
' ' || c[0] >
'~') && c[0] !=
'\r' && c[0] != 0x08 &&
88 c.ctrl = c.alt = c.shift = c.caps_lock = 0;
89 c.num_lock = c.is_special = c.reserved = 0;
99 c.ctrl = c.alt = c.shift = c.caps_lock = 0;
100 c.num_lock = c.is_special = c.reserved = 0;
virtual char getCharNonBlock()
static OpenFirmware & instance()
virtual char getCharNonBlock()
virtual Character getCharacterNonBlock()
virtual void initialise()
virtual void setDebugState(bool enableDebugMode)
virtual Character getCharacter()