38 template <
typename Diagnostics = NullDiagnostics>
69 inline void setCapsLock(
bool newCapsLockValue) { this->isCapsLockMode = newCapsLockValue; }
72 inline bool getCapsLock()
const {
return this->isCapsLockMode; }
78 inline void setNumLock(
bool newNumLockValue) { this->isNumLockMode = newNumLockValue; }
81 inline bool getNumLock()
const {
return this->isNumLockMode; }
85 bool isKeyAffectedByNumlock(
KeyboardOutput ps2Key,
char rawTranslation);
87 static const char ps2ToAsciiMap[] PROGMEM;
88 static const byte pauseKeySequence[] PROGMEM;
96 int pauseKeySequenceIndex;
97 Diagnostics *diagnostics;
char translatePs2Keycode(ps2::KeyboardOutput ps2Scan)
Processes the given scan code from the keyboard. It only gives you keydown events for keys that have ...
Definition: ps2_AnsiTranslator.hpp:179
bool isCtrlKeyDown() const
Gets the state of the Ctrl key.
Definition: ps2_AnsiTranslator.h:58
Definition: ps2_AnsiTranslator.h:24
This class provides a translation from PS2 incoming scancodes to Ansi. Right now, the name "Ansi" is ...
Definition: ps2_AnsiTranslator.h:39
void reset()
Definition: ps2_AnsiTranslator.hpp:173
KeyboardOutput
Byte-codes sent back from the Ps2 keyboard to the host.
Definition: ps2_KeyboardOutput.h:31
bool getCapsLock() const
Gets the state of the caps lock mode.
Definition: ps2_AnsiTranslator.h:72
void setCapsLock(bool newCapsLockValue)
Sets the state of the caps lock mode.
Definition: ps2_AnsiTranslator.h:69
void setNumLock(bool newNumLockValue)
Sets the state of the num lock mode.
Definition: ps2_AnsiTranslator.h:78
bool isShiftKeyDown() const
Gets the state of the Shift key.
Definition: ps2_AnsiTranslator.h:63
AnsiTranslator()
Definition: ps2_AnsiTranslator.hpp:147
bool getNumLock() const
Gets the state of the num lock mode.
Definition: ps2_AnsiTranslator.h:81