]> git.sur5r.net Git - cc65/commitdiff
OOPS! Forgot to add the mouse_getbox and mouse_setbox modules to subversion.
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 26 Sep 2009 15:19:14 +0000 (15:19 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 26 Sep 2009 15:19:14 +0000 (15:19 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@4233 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/mouse/mouse_getbox.s [new file with mode: 0644]
libsrc/mouse/mouse_setbox.s [new file with mode: 0644]

diff --git a/libsrc/mouse/mouse_getbox.s b/libsrc/mouse/mouse_getbox.s
new file mode 100644 (file)
index 0000000..01b5dfb
--- /dev/null
@@ -0,0 +1,13 @@
+;
+; Ullrich von Bassewitz, 2009-09-26
+;
+; void __fastcall__ mouse_getbox (struct mouse_box* box);
+; /* Get the current bounding box for the mouse pointer movement. */
+;
+;
+
+        .include        "mouse-kernel.inc"
+
+        _mouse_getbox    := mouse_getbox        ; Call driver directly
+
+
diff --git a/libsrc/mouse/mouse_setbox.s b/libsrc/mouse/mouse_setbox.s
new file mode 100644 (file)
index 0000000..4b00379
--- /dev/null
@@ -0,0 +1,26 @@
+;
+; Ullrich von Bassewitz, 2009-09-26
+;
+; void __fastcall__ mouse_setbox (const struct mouse_box* box);
+; /* Set the bounding box for the mouse pointer movement. The mouse X and Y
+;  * coordinates will never go outside the given box.
+;  * NOTE: The function does *not* check if the mouse is currently inside the
+;  * given margins. The proper way to use this function therefore is:
+;  *
+;  *   - Hide the mouse
+;  *   - Set the bounding box
+;  *   - Place the mouse at the desired position
+;  *   - Show the mouse again.
+;  *
+;  * NOTE2: When setting the box to something that is larger than the actual
+;  * screen, the positioning of the mouse cursor can fail. If such margins
+;  * are really what you want, you have to use your own cursor routines.
+;  */
+;
+;
+
+        .include        "mouse-kernel.inc"
+
+        _mouse_setbox   := mouse_setbox         ; Call driver directly
+
+