MCPcopy Create free account
hub / github.com/BruceDevices/firmware / _buildShiftCache

Method _buildShiftCache

lib/Bad_Usb_Lib/USBHIDKeyboard.cpp:248–254  ·  view source on GitHub ↗

Build cache of shift requirements to avoid looking up each time

Source from the content-addressed store, hash-verified

246
247// Build cache of shift requirements to avoid looking up each time
248void 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 */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected