diff options
| -rw-r--r-- | protocol/ps2_mouse.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/protocol/ps2_mouse.c b/protocol/ps2_mouse.c index 4702f12c4..c3e8b3c1c 100644 --- a/protocol/ps2_mouse.c +++ b/protocol/ps2_mouse.c | |||
| @@ -82,9 +82,14 @@ void ps2_mouse_task(void) | |||
| 82 | mouse_report.x = ps2_host_recv_response(); | 82 | mouse_report.x = ps2_host_recv_response(); |
| 83 | mouse_report.y = ps2_host_recv_response(); | 83 | mouse_report.y = ps2_host_recv_response(); |
| 84 | } else { | 84 | } else { |
| 85 | if (!debug_mouse) print("ps2_mouse: fail to get mouse packet\n"); | 85 | if (debug_mouse) print("ps2_mouse: fail to get mouse packet\n"); |
| 86 | return; | 86 | return; |
| 87 | } | 87 | } |
| 88 | xprintf("%ud ", timer_read()); | ||
| 89 | print("ps2_mouse raw: ["); | ||
| 90 | phex(mouse_report.buttons); print("|"); | ||
| 91 | print_hex8((uint8_t)mouse_report.x); print(" "); | ||
| 92 | print_hex8((uint8_t)mouse_report.y); print("]\n"); | ||
| 88 | 93 | ||
| 89 | /* if mouse moves or buttons state changes */ | 94 | /* if mouse moves or buttons state changes */ |
| 90 | if (mouse_report.x || mouse_report.y || | 95 | if (mouse_report.x || mouse_report.y || |
