]> git.sur5r.net Git - cc65/commitdiff
More mouse functions
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 30 Dec 2003 19:14:17 +0000 (19:14 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 30 Dec 2003 19:14:17 +0000 (19:14 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@2859 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/mouse/mouse_buttons.s [new file with mode: 0644]
libsrc/mouse/mouse_move.s [new file with mode: 0644]

diff --git a/libsrc/mouse/mouse_buttons.s b/libsrc/mouse/mouse_buttons.s
new file mode 100644 (file)
index 0000000..7c8bbfe
--- /dev/null
@@ -0,0 +1,14 @@
+;
+; Ullrich von Bassewitz, 2003-12-30
+;
+; unsigned char __fastcall__ mouse_buttons (void);
+; /* Return a bit mask encoding the states of the mouse buttons. Use the
+;  * MOUSE_BTN_XXX flags to decode a specific button.
+;  */
+;
+
+        .include        "mouse-kernel.inc"
+
+        _mouse_buttons  = mouse_buttons ; Call driver directly
+
+
diff --git a/libsrc/mouse/mouse_move.s b/libsrc/mouse/mouse_move.s
new file mode 100644 (file)
index 0000000..f3052c1
--- /dev/null
@@ -0,0 +1,28 @@
+;
+; Ullrich von Bassewitz, 2003-12-30
+;
+; void __fastcall__ mouse_move (int x, int y);
+; /* Set the mouse cursor to the given position. If a mouse cursor is defined
+;  * and currently visible, the mouse cursor is also moved.
+;  * NOTE: This function does not check if the given position is valid and
+;  * inside the bounding box.
+;  */
+;
+
+        .import         ptr1: zp
+
+        .include        "mouse-kernel.inc"
+
+.proc   _mouse_move
+
+        sta     ptr1
+        stx     ptr1+1                  ; Store x into ptr1
+        jsr     popax
+        jmp     mouse_move              ; Call the driver
+
+.endproc
+
+
+
+
+