From caeb81b3974b166131d5861ce588d4b79c526d9f Mon Sep 17 00:00:00 2001
From: Rob Swindell <rob@synchro.net>
Date: Sat, 25 Jun 2022 18:47:02 -0700
Subject: [PATCH] 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.
---
 src/sbbs3/inkey.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/sbbs3/inkey.cpp b/src/sbbs3/inkey.cpp
index dea15650b2..1a43c375ad 100644
--- a/src/sbbs3/inkey.cpp
+++ b/src/sbbs3/inkey.cpp
@@ -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) {
-- 
GitLab