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

Method sendGUIKey

src/modules/ble/BLE_Suite.cpp:1799–1803  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1797}
1798
1799bool HIDDuckyService::sendGUIKey(NimBLERemoteCharacteristic *pChar, char key) {
1800 uint8_t modifier = 0x08;
1801 DuckyScriptEngine::HIDKeycode kc = duckyEngine.charToKeycode(key);
1802 return sendHIDReport(pChar, modifier, kc.keycode);
1803}
1804
1805bool HIDDuckyService::injectDuckyScript(NimBLEAddress target, String script) {
1806 if (!duckyEngine.loadFromString(script)) return false;

Callers

nothing calls this directly

Calls 1

charToKeycodeMethod · 0.80

Tested by

no test coverage detected