aboutsummaryrefslogtreecommitdiff
path: root/int16kbd.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2022-04-09 00:04:39 +0200
committerJavier <dev.git@javispedro.com>2022-04-09 00:04:39 +0200
commit90cecec048ee29a4971b8bda571da2a2b9613024 (patch)
tree5aa8e9c6a8f8694f12972ab89e215dfcfed65db2 /int16kbd.h
parent0f6414cb3f8afa2012f6567e2fbfe844b8bd4b78 (diff)
downloadvbados-90cecec048ee29a4971b8bda571da2a2b9613024.tar.gz
vbados-90cecec048ee29a4971b8bda571da2a2b9613024.zip
support generating a keystroke on wheel movement
Diffstat (limited to 'int16kbd.h')
-rw-r--r--int16kbd.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/int16kbd.h b/int16kbd.h
new file mode 100644
index 0000000..45db8ef
--- /dev/null
+++ b/int16kbd.h
@@ -0,0 +1,12 @@
+#ifndef INT16KBD_H
+#define INT16KBD_H
+
+static bool int16_store_keystroke(uint16_t scancode);
+#pragma aux int16_store_keystroke = \
+ "mov ah, 0x05" \
+ "int 0x16" \
+ __parm [cx] \
+ __value [al] \
+ __modify [ax]
+
+#endif // INT16KBD_H