fix small typo

This commit is contained in:
Benji Dial 2024-05-19 05:00:40 -04:00
parent e60fa7740c
commit 17c1bd441d

View file

@ -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);