mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:57:35 +00: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
2 changed files with 7 additions and 6 deletions
|
@ -139,9 +139,9 @@ void PS2MouseDevice::parse_data_packet()
|
||||||
y = 0;
|
y = 0;
|
||||||
}
|
}
|
||||||
MousePacket packet;
|
MousePacket packet;
|
||||||
packet.dx = x;
|
packet.x = x;
|
||||||
packet.dy = y;
|
packet.y = y;
|
||||||
packet.dz = z;
|
packet.z = z;
|
||||||
packet.buttons = m_data[0] & 0x07;
|
packet.buttons = m_data[0] & 0x07;
|
||||||
|
|
||||||
m_queue.enqueue(packet);
|
m_queue.enqueue(packet);
|
||||||
|
|
|
@ -27,8 +27,9 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
struct MousePacket {
|
struct MousePacket {
|
||||||
int dx { 0 };
|
int x { 0 };
|
||||||
int dy { 0 };
|
int y { 0 };
|
||||||
int dz { 0 };
|
int z { 0 };
|
||||||
unsigned char buttons { 0 };
|
unsigned char buttons { 0 };
|
||||||
|
bool is_relative { true };
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue