This thread inactive for a while but seems good starting point for me. I'm making a kbd/ptr sharing gizmo to be able to control chromebooks from linux computer (linux computer is raspberry pi for now but generic intention). I have C program on rpi to detect X events. send the X events to a teensy LC (with encoding of my scheme) and use the mouse.button mouse.move and keyboard.press/release to pass along X events to chromebook. Mouse is working fine but am still trying to understand all the nasty legacy of keyboards and scan codes. I don't want to use keyboard.print but rather keyboard.press and keyboard.release and am building the suggested lookup table. Main question for now, where are ALL the define's located for KEY_A, MODIFIERKEY_CTRL and all the rest? Doesn't seem to be in keyboard.h or HID.h.
thx