Build cache of shift requirements to avoid looking up each time
| 246 | |
| 247 | // Build cache of shift requirements to avoid looking up each time |
| 248 | void USBHIDKeyboard::_buildShiftCache() { |
| 249 | for (uint8_t i = 0; i < 128; i++) { |
| 250 | uint8_t mapValue = _asciimap[i]; |
| 251 | _shiftCache[i] = mapValue; |
| 252 | } |
| 253 | _cacheValid = true; |
| 254 | } |
| 255 | |
| 256 | #endif /* CONFIG_TINYUSB_HID_ENABLED */ |
nothing calls this directly
no outgoing calls
no test coverage detected