]> git.sur5r.net Git - cc65/blobdiff - include/mouse.h
Added mouse_ioctl
[cc65] / include / mouse.h
index cdc3053153149c0d5533646a09235872d8dd2948..a27cdf85762211798a752e16cadca3f193dd7bae 100644 (file)
@@ -52,6 +52,7 @@
 #define MOUSE_ERR_CANNOT_LOAD   2       /* Error loading driver */
 #define MOUSE_ERR_INV_DRIVER    3       /* Invalid driver */
 #define MOUSE_ERR_NO_DEVICE     4       /* Mouse hardware not found */
+#define MOUSE_ERR_INV_IOCTL     5       /* Invalid ioctl code */
 
 /* Mouse button masks */
 #define MOUSE_BTN_LEFT      0x10
@@ -153,6 +154,11 @@ void __fastcall__ mouse_pos (struct mouse_pos* pos);
 void __fastcall__ mouse_info (struct mouse_info* info);
 /* Return the state of the mouse buttons and the position of the mouse */
 
+unsigned char __fastcall__ mouse_ioctl (unsigned char code, void* data);
+/* Call the driver specific ioctl function. NON PORTABLE! Returns an error 
+ * code. 
+ */
+
 
 
 /* End of mouse.h */