diff options
author | Javier <dev.git@javispedro.com> | 2022-04-09 00:04:39 +0200 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2022-04-09 00:04:39 +0200 |
commit | 90cecec048ee29a4971b8bda571da2a2b9613024 (patch) | |
tree | 5aa8e9c6a8f8694f12972ab89e215dfcfed65db2 /int16kbd.h | |
parent | 0f6414cb3f8afa2012f6567e2fbfe844b8bd4b78 (diff) | |
download | vbados-90cecec048ee29a4971b8bda571da2a2b9613024.tar.gz vbados-90cecec048ee29a4971b8bda571da2a2b9613024.zip |
support generating a keystroke on wheel movement
Diffstat (limited to 'int16kbd.h')
-rw-r--r-- | int16kbd.h | 12 |
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 |