1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-27 16:31:31 +00:00

Adds a dummy response for mouse interrogation.

This commit is contained in:
Thomas Harte 2019-10-26 16:14:24 -04:00
parent e96386f572
commit eae11cbf17

View File

@ -202,6 +202,11 @@ class IntelligentKeyboard:
}
void interrogate_mouse_position() {
output_byte(0x00); // 0000dcba; a = right button down since last interrogation, b = right button up since, c/d = left button.
output_byte(0x00); // x motion: MSB, LSB
output_byte(0x00);
output_byte(0x00); // y motion: MSB, LSB
output_byte(0x00);
}
// MARK: - Joystick commands.