diff --git a/include/device.h b/include/device.h index 108aa822..925a76e2 100644 --- a/include/device.h +++ b/include/device.h @@ -57,6 +57,7 @@ typedef enum NETWORK_TYPE_ETHERNET = DEVICE_TYPE_NETWORK + 2, NETWORK_TYPE_WIFI = DEVICE_TYPE_NETWORK + 4, NETWORK_TYPE_BLUETOOTH = DEVICE_TYPE_NETWORK + 8, + NETWORK_TYPE_UART = DEVICE_TYPE_NETWORK + 16, BLOCK_TYPE_NONE = DEVICE_TYPE_BLOCK + 0, BLOCK_TYPE_SDCARD = DEVICE_TYPE_BLOCK + 2, diff --git a/include/input.h b/include/input.h index 6e124bf7..ff40a071 100644 --- a/include/input.h +++ b/include/input.h @@ -168,6 +168,16 @@ typedef enum typedef struct { KeyScanCodes Key; + + union + { + struct + { + char IsScanCode : 1; + }; + char Value; + }; + unsigned char Character; } KeyboardReport; typedef struct