MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / hidKbdToLinuxKey

Function hidKbdToLinuxKey

src/core/UlanziDialWindowsManager.cpp:49–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49int hidKbdToLinuxKey(unsigned char keycode)
50{
51 switch (keycode) {
52 case 0x06: return KEY_C; // HID Keyboard page 0x06 = C
53 case 0x19: return KEY_V; // 0x19 = V
54 case 0x1C: return KEY_Y; // 0x1C = Y
55 case 0x1D: return KEY_Z; // 0x1D = Z
56 case 0xE0: return KEY_LEFTCTRL;
57 case 0xE4: return KEY_RIGHTCTRL;
58 default: return -1;
59 }
60}
61
62QString bareKeySignature(int keycode)
63{

Callers 1

handleReportMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected