aboutsummaryrefslogtreecommitdiff
path: root/mousetsr.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2022-12-11 16:26:11 +0100
committerJavier <dev.git@javispedro.com>2022-12-11 16:26:11 +0100
commit7e3679f7c06cee1bd5ca76c6efdebc8ce367f587 (patch)
tree2f76a37476b235cc9d2d804ca7d345d6f851b060 /mousetsr.h
parent5fc2534453bfadb0ec0075d38980a0423137ab26 (diff)
downloadvbados-7e3679f7c06cee1bd5ca76c6efdebc8ce367f587.tar.gz
vbados-7e3679f7c06cee1bd5ca76c6efdebc8ce367f587.zip
do not allow the show cursor counter to go above 0
Diffstat (limited to 'mousetsr.h')
-rw-r--r--mousetsr.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/mousetsr.h b/mousetsr.h
index 181e949..c37c751 100644
--- a/mousetsr.h
+++ b/mousetsr.h
@@ -28,18 +28,20 @@
// User customizable defines
-/** Enable the VirtualBox integration */
+/** Enable VirtualBox integration. */
#define USE_VIRTUALBOX 1
-/** Enable the VMware integration */
+/** Enable VMware integration. */
#define USE_VMWARE 1
-/** Enable the Windows 386/protected mode integration */
+/** Enable Windows 386/protected mode integration .*/
#define USE_WIN386 1
/** Enable the wheel. */
#define USE_WHEEL 1
-/** Trace events verbosily */
+/** Trace mouse events verbosily. */
#define TRACE_EVENTS 0
+/** Trace (noisy) API calls. */
+#define TRACE_CALLS 1
-/** The report MS MOUSE compatible version to programs who ask for it. */
+/** The reported MS MOUSE compatible version to programs who ask for it. */
#define REPORTED_VERSION_MAJOR 6
#define REPORTED_VERSION_MINOR 0x30
@@ -130,8 +132,8 @@ typedef struct tsrdata {
struct point min;
/** Current window max coordinates. */
struct point max;
- /** Current cursor visible counter. If >= 0, cursor should be shown. */
- int16_t visible_count;
+ /** If N > 0, cursor has been hidden N times, and will require N show calls to unhide. */
+ uint8_t hidden_count;
/** For text cursor, whether this is a software or hardware cursor. */
uint8_t cursor_text_type;
/** Masks for the text cursor. */