;; USB HID Keyboard scan codes as per USB spec 1.11 ;; plus some additional codes ;; ;; Created by MightyPork, 2016 ;; Public domain ;; ;; Adapted from: ;; https://source.android.com/devices/input/keyboard-devices.html ;; Modifier masks - used for the first byte in the HID report. ;; NOTE: The second byte in the report is reserved, #x00 ("KEY_MOD_LCTRL" . #x01) ("KEY_MOD_LSHIFT" . #x02) ("KEY_MOD_LALT" . #x04) ("KEY_MOD_LMETA" . #x08) ("KEY_MOD_RCTRL" . #x10) ("KEY_MOD_RSHIFT" . #x20) ("KEY_MOD_RALT" . #x40) ("KEY_MOD_RMETA" . #x80)