Skip to content
Snippets Groups Projects
Commit caeb81b3 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Indicate whether an SGR mouse button report is a press or release

In the mouse debug log output. Potentially helpful in debugging mouse related issues when using the SGR mouse reporting mode.
parent 884aa6fb
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #3139 passed
......@@ -417,7 +417,8 @@ char sbbs_t::handle_ctrlkey(char ch, long mode)
}
--x;
--y;
lprintf(LOG_DEBUG, "SGR Mouse button-click (0x%02X) reported at: %u x %u", button, x, y);
lprintf(LOG_DEBUG, "SGR Mouse button (0x%02X) %s reported at: %u x %u"
,button, ch == 'M' ? "PRESS" : "RELEASE", x, y);
if(button == 0 && ch == 'M') { // Left-button press
list_node_t* node;
for(node = mouse_hotspots.first; node != NULL; node = node->next) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment