Compare commits
2 Commits
969e07f0a2
...
12a78c822e
Author | SHA1 | Date |
---|---|---|
Bananymous | 12a78c822e | |
Bananymous | e45b544a39 |
|
@ -96,8 +96,8 @@ namespace Kernel::Input
|
||||||
return;
|
return;
|
||||||
|
|
||||||
uint8_t new_button_mask = m_byte_buffer[0] & 0b111;
|
uint8_t new_button_mask = m_byte_buffer[0] & 0b111;
|
||||||
int32_t rel_x = m_byte_buffer[1] - ((m_byte_buffer[0] << 4) & 0x100);
|
int32_t rel_x = m_byte_buffer[1] - (((uint16_t)m_byte_buffer[0] << 4) & 0x100);
|
||||||
int32_t rel_y = m_byte_buffer[2] - ((m_byte_buffer[0] << 3) & 0x100);
|
int32_t rel_y = m_byte_buffer[2] - (((uint16_t)m_byte_buffer[0] << 3) & 0x100);
|
||||||
int32_t rel_z = 0;
|
int32_t rel_z = 0;
|
||||||
|
|
||||||
if (m_mouse_id == 0x03)
|
if (m_mouse_id == 0x03)
|
||||||
|
|
Loading…
Reference in New Issue