From 021d6fdd6b5a2c2116b15f65dc1e4f3baea34129 Mon Sep 17 00:00:00 2001 From: EnderIce2 Date: Tue, 27 Aug 2024 17:24:20 +0300 Subject: [PATCH] Update kernel api --- include/interface/device.h | 1 + include/interface/input.h | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/include/interface/device.h b/include/interface/device.h index 108aa822..925a76e2 100644 --- a/include/interface/device.h +++ b/include/interface/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/interface/input.h b/include/interface/input.h index 6e124bf7..ff40a071 100644 --- a/include/interface/input.h +++ b/include/interface/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