diff options
author | Benji Dial <benji@benjidial.net> | 2024-05-19 04:34:40 -0400 |
---|---|---|
committer | Benji Dial <benji@benjidial.net> | 2024-05-19 04:34:40 -0400 |
commit | e60fa7740cd7d245d1b22a25fea9df0768d32668 (patch) | |
tree | 728fa422d3a2abc66a3e2d89e4ef03b72074bb3e /documentation | |
parent | b1a912a8a6ff472a49b2e0a09cfd433adfc2cb24 (diff) | |
download | hilbert-os-e60fa7740cd7d245d1b22a25fea9df0768d32668.tar.gz |
mouse support (working in qemu, semi-working in virtualbox)
Diffstat (limited to 'documentation')
-rw-r--r-- | documentation/kernel-interface/keys.txt (renamed from documentation/keys.txt) | 0 | ||||
-rw-r--r-- | documentation/kernel-interface/sockets.txt (renamed from documentation/sockets.txt) | 0 | ||||
-rw-r--r-- | documentation/kernel-interface/syscalls.txt (renamed from documentation/syscalls.txt) | 14 |
3 files changed, 12 insertions, 2 deletions
diff --git a/documentation/keys.txt b/documentation/kernel-interface/keys.txt index 1b92afa..1b92afa 100644 --- a/documentation/keys.txt +++ b/documentation/kernel-interface/keys.txt diff --git a/documentation/sockets.txt b/documentation/kernel-interface/sockets.txt index 73dade6..73dade6 100644 --- a/documentation/sockets.txt +++ b/documentation/kernel-interface/sockets.txt diff --git a/documentation/syscalls.txt b/documentation/kernel-interface/syscalls.txt index 52e909d..792c300 100644 --- a/documentation/syscalls.txt +++ b/documentation/kernel-interface/syscalls.txt @@ -63,9 +63,19 @@ get new pages: rax out: start of first page the allocated pages are next to each other, writable, and not executable. -read key packet: +get input packet: rax in: 5 - eax out: key packet + al out: + bit 7: was mouse packet + if bit 7: + bit 0: left mouse button down + bit 1: right mouse button down + bit 2: middle mouse button down + if bit 7: + di out: mouse x change (signed) + si out: mouse y change (signed) + else: + edi out: key packet create private socket: rax in: 6 |