summaryrefslogtreecommitdiff
path: root/kernel/source
diff options
context:
space:
mode:
authorBenji Dial <benji@benjidial.net>2024-05-19 05:00:40 -0400
committerBenji Dial <benji@benjidial.net>2024-05-19 05:00:40 -0400
commit17c1bd441de115720d7c6758550c49c1b4689900 (patch)
tree18a6ac33e83f4510fe51e0993ea391234d1e49be /kernel/source
parente60fa7740cd7d245d1b22a25fea9df0768d32668 (diff)
downloadhilbert-os-17c1bd441de115720d7c6758550c49c1b4689900.tar.gz
fix small typo
Diffstat (limited to 'kernel/source')
-rw-r--r--kernel/source/interrupts.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/kernel/source/interrupts.cpp b/kernel/source/interrupts.cpp
index 9b6495e..f8e613e 100644
--- a/kernel/source/interrupts.cpp
+++ b/kernel/source/interrupts.cpp
@@ -186,8 +186,10 @@ extern "C" void on_mouse_interrupt(uint8_t byte) {
input::input_queue->last_inserted().is_mouse &&
input::input_queue->last_inserted().mouse.buttons ==
packet.mouse.buttons) {
- input::input_queue->last_inserted().mouse.x_change = packet.mouse.x_change;
- input::input_queue->last_inserted().mouse.y_change = packet.mouse.y_change;
+ input::input_queue->last_inserted().mouse.x_change +=
+ packet.mouse.x_change;
+ input::input_queue->last_inserted().mouse.y_change +=
+ packet.mouse.y_change;
}
else
input::input_queue->insert(packet);