mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 17:58:18 +03:00
Kernel: Stub absolute mouse positioning support
This is not the real kernel patch, @supercomputer7 is doing that :^)
This commit is contained in:
parent
6c9d66ed4b
commit
0334656e45
Notes:
sideshowbarker
2024-07-19 09:40:30 +09:00
Author: https://github.com/bugaevc Commit: https://github.com/SerenityOS/serenity/commit/0334656e45c Pull-request: https://github.com/SerenityOS/serenity/pull/1173
@ -139,9 +139,9 @@ void PS2MouseDevice::parse_data_packet()
|
||||
y = 0;
|
||||
}
|
||||
MousePacket packet;
|
||||
packet.dx = x;
|
||||
packet.dy = y;
|
||||
packet.dz = z;
|
||||
packet.x = x;
|
||||
packet.y = y;
|
||||
packet.z = z;
|
||||
packet.buttons = m_data[0] & 0x07;
|
||||
|
||||
m_queue.enqueue(packet);
|
||||
|
@ -27,8 +27,9 @@
|
||||
#pragma once
|
||||
|
||||
struct MousePacket {
|
||||
int dx { 0 };
|
||||
int dy { 0 };
|
||||
int dz { 0 };
|
||||
int x { 0 };
|
||||
int y { 0 };
|
||||
int z { 0 };
|
||||
unsigned char buttons { 0 };
|
||||
bool is_relative { true };
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user