mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:57:35 +00:00
Reduce PS2MouseDevice debug spam in every dang mouse interrupt.
This commit is contained in:
parent
5db720dc59
commit
0e6c19ffa6
1 changed files with 4 additions and 0 deletions
|
@ -1,6 +1,8 @@
|
||||||
#include "PS2MouseDevice.h"
|
#include "PS2MouseDevice.h"
|
||||||
#include "IO.h"
|
#include "IO.h"
|
||||||
|
|
||||||
|
//#define PS2MOUSE_DEBUG
|
||||||
|
|
||||||
static PS2MouseDevice* s_the;
|
static PS2MouseDevice* s_the;
|
||||||
|
|
||||||
PS2MouseDevice::PS2MouseDevice()
|
PS2MouseDevice::PS2MouseDevice()
|
||||||
|
@ -34,12 +36,14 @@ void PS2MouseDevice::handle_irq()
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
m_data_state = 0;
|
m_data_state = 0;
|
||||||
|
#ifdef PS2MOUSE_DEBUG
|
||||||
dbgprintf("PS2Mouse: %d, %d %s %s\n",
|
dbgprintf("PS2Mouse: %d, %d %s %s\n",
|
||||||
m_data[1],
|
m_data[1],
|
||||||
m_data[2],
|
m_data[2],
|
||||||
(m_data[0] & 1) ? "Left" : "",
|
(m_data[0] & 1) ? "Left" : "",
|
||||||
(m_data[0] & 2) ? "Right" : ""
|
(m_data[0] & 2) ? "Right" : ""
|
||||||
);
|
);
|
||||||
|
#endif
|
||||||
if (m_client)
|
if (m_client)
|
||||||
m_client->did_receive_mouse_data(m_data[1], -m_data[2], m_data[0] & 1, m_data[0] & 2);
|
m_client->did_receive_mouse_data(m_data[1], -m_data[2], m_data[0] & 1, m_data[0] & 2);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue