We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac0291b commit c609d4aCopy full SHA for c609d4a
src/Keyboard.cpp
@@ -65,7 +65,7 @@ Keyboard_::Keyboard_(void)
65
{
66
static HIDSubDescriptor node(_hidReportDescriptor, sizeof(_hidReportDescriptor));
67
HID().AppendDescriptor(&node);
68
- _asciimap = 0;
+ _asciimap = KeyboardLayout_en_US;
69
}
70
71
void Keyboard_::begin(const uint8_t *layout)
@@ -90,10 +90,6 @@ uint8_t USBPutChar(uint8_t c);
90
// call release(), releaseAll(), or otherwise clear the report and resend.
91
size_t Keyboard_::press(uint8_t k)
92
93
- // Do not be too harsh on users who forget to begin().
94
- if (!_asciimap) {
95
- begin();
96
- }
97
uint8_t i;
98
if (k >= 136) { // it's a non-printing key (not a modifier)
99
k = k - 136;
0 commit comments