From 17c1bd441de115720d7c6758550c49c1b4689900 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Sun, 19 May 2024 05:00:40 -0400 Subject: fix small typo --- kernel/source/interrupts.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'kernel/source/interrupts.cpp') 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); -- cgit v1.2.3