summaryrefslogtreecommitdiff
path: root/kernel/source/interrupts.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/source/interrupts.cpp')
-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);