From eb034ed6a14fb2daa41d754ddd278b7ed2965271 Mon Sep 17 00:00:00 2001 From: turbocat Date: Tue, 18 Jan 2022 19:05:45 +0000 Subject: [PATCH] ksys.h : added missing wrapper for sf 66.1 (thanks Vitalkrilov). git-svn-id: svn://kolibrios.org@9655 a494cfbc-eb01-0410-851d-a64ba20cac60 --- .../ktcc/trunk/libc.obj/include/sys/ksys.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/programs/develop/ktcc/trunk/libc.obj/include/sys/ksys.h b/programs/develop/ktcc/trunk/libc.obj/include/sys/ksys.h index 1a9245adba..87db1e6d67 100644 --- a/programs/develop/ktcc/trunk/libc.obj/include/sys/ksys.h +++ b/programs/develop/ktcc/trunk/libc.obj/include/sys/ksys.h @@ -1075,6 +1075,21 @@ void _ksys_debug_puts(char *s){ } } +/*========= Function 66, subfunction 1 - set keyboard input mode. ==============*/ + +typedef enum KSYS_KEY_INPUT_MODE { + KSYS_KEY_INPUT_MODE_ASCII = 0, + KSYS_KEY_INPUT_MODE_SCANC = 1, +} ksys_key_input_mode; + +static inline +void _ksys_set_key_input_mode(ksys_key_input_mode mode){ + asm_inline( + "int $0x40" + ::"a"(66),"b"(1),"c"(mode) + ); +} + /*========= Function 67 - change position/sizes of the window. =========*/ static inline