diff options
author | Benji Dial <benji@benjidial.net> | 2024-05-19 05:00:40 -0400 |
---|---|---|
committer | Benji Dial <benji@benjidial.net> | 2024-05-19 05:00:40 -0400 |
commit | 17c1bd441de115720d7c6758550c49c1b4689900 (patch) | |
tree | 18a6ac33e83f4510fe51e0993ea391234d1e49be | |
parent | e60fa7740cd7d245d1b22a25fea9df0768d32668 (diff) | |
download | hilbert-os-17c1bd441de115720d7c6758550c49c1b4689900.tar.gz |
fix small typo
-rw-r--r-- | kernel/source/interrupts.cpp | 6 |
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); |