File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -85,19 +85,19 @@ void ps2_mouse_task(void)
85
85
if (debug_mouse ) print ("ps2_mouse: fail to get mouse packet\n" );
86
86
return ;
87
87
}
88
-
89
- #ifdef PS2_MOUSE_DEBUG
90
- xprintf ("%ud " , timer_read ());
91
- print ("ps2_mouse raw: [" );
92
- phex (mouse_report .buttons ); print ("|" );
93
- print_hex8 ((uint8_t )mouse_report .x ); print (" " );
94
- print_hex8 ((uint8_t )mouse_report .y ); print ("]\n" );
95
- #endif
96
88
97
89
/* if mouse moves or buttons state changes */
98
90
if (mouse_report .x || mouse_report .y ||
99
91
((mouse_report .buttons ^ buttons_prev ) & PS2_MOUSE_BTN_MASK )) {
100
92
93
+ #ifdef PS2_MOUSE_DEBUG
94
+ xprintf ("%ud " , timer_read ());
95
+ print ("ps2_mouse raw: [" );
96
+ phex (mouse_report .buttons ); print ("|" );
97
+ print_hex8 ((uint8_t )mouse_report .x ); print (" " );
98
+ print_hex8 ((uint8_t )mouse_report .y ); print ("]\n" );
99
+ #endif
100
+
101
101
buttons_prev = mouse_report .buttons ;
102
102
103
103
// PS/2 mouse data is '9-bit integer'(-256 to 255) which is comprised of sign-bit and 8-bit value.
You can’t perform that action at this time.
0 commit comments