]> git.sur5r.net Git - cc65/commitdiff
New ioctl function
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 30 Dec 2003 08:18:40 +0000 (08:18 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 30 Dec 2003 08:18:40 +0000 (08:18 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@2858 b7a2c559-68d2-44c3-8de9-860c34a00d81

asminc/mouse-kernel.inc

index 006f3e475e7ae9b8bd14d560ab34a7c0a3346819..60cd6937a4b04ddd5cf4c1348460f803feab256b 100644 (file)
@@ -45,6 +45,7 @@
         MOUSE_ERR_CANNOT_LOAD           ; Error loading driver
         MOUSE_ERR_INV_DRIVER            ; Invalid driver
         MOUSE_ERR_NO_DEVICE             ; Mouse hardware not found
+        MOUSE_ERR_INV_IOCTL             ; Invalid ioctl code
 .endenum
 
 ;------------------------------------------------------------------------------
@@ -63,6 +64,8 @@
            BUTTONS     .addr
            POS         .addr
             INFO        .addr
+            IOCTL       .addr
+           IRQ         .addr
        .endstruct
 .endstruct
 
@@ -110,7 +113,8 @@ MOUSE_BTN_RIGHT         = $01
         .global _mouse_move
         .global _mouse_buttons
         .global _mouse_pos
-        .global _mouse_info
+        .global _mouse_info   
+        .global _mouse_ioctl
 
 ;------------------------------------------------------------------------------
 ; Driver entry points
@@ -123,6 +127,7 @@ MOUSE_BTN_RIGHT         = $01
         .global mouse_move
         .global mouse_buttons
         .global mouse_pos
-        .global mouse_info
+        .global mouse_info  
+        .global mouse_ioctl