]> git.sur5r.net Git - cc65/blobdiff - asminc/mouse-kernel.inc
Working on loadable mouse drivers
[cc65] / asminc / mouse-kernel.inc
index ae3b26f7dba0396b8f5c2d55b8704646c7134d46..20596f1420fc142bfc241322c16b6522950d8e24 100644 (file)
@@ -6,7 +6,7 @@
 ;/*                                                                           */
 ;/*                                                                           */
 ;/*                                                                           */
-;/* (C) 2003      Ullrich von Bassewitz                                       */
+;/* (C) 2003-2004 Ullrich von Bassewitz                                       */
 ;/*               Römerstraße 52                                              */
 ;/*               D-70794 Filderstadt                                         */
 ;/* EMail:        uz@cc65.org                                                 */
                         .byte
             CSHOW       .addr
                         .byte
-            CMOVE       .addr
+            CMOVEX      .addr
+                        .byte
+            CMOVEY      .addr
         .endstruct
 .endstruct
 
+;------------------------------------------------------------------------------
+; The mouse callback structure
+
+.struct        MOUSE_CALLBACKS
+       HIDE    .addr                   ; Hide the mouse cursor
+       SHOW    .addr                   ; Show the mouse cursor
+               MOVEX   .addr                   ; Move the mouse cursor
+        MOVEY   .addr                   ; Dito for Y
+.endstruct
+
 ;------------------------------------------------------------------------------
 ; The mouse API version, stored in MOUSE_HDR::VERSION
 
@@ -113,7 +125,6 @@ MOUSE_BTN_RIGHT         = $01
 ;------------------------------------------------------------------------------
 ; C callable functions
 
-        .global _mouse_set_callbacks
         .global _mouse_load_driver
         .global _mouse_unload
         .global _mouse_install