]> git.sur5r.net Git - cc65/blobdiff - include/mouse.h
Remove this copy of the apple include file - a copy was added to asminc
[cc65] / include / mouse.h
index af91ceccaf1b7314b3426b2a0e5797e79b9bb764..136bfd15e7b04ceb6d43a4a7ab12bd4838620017 100644 (file)
@@ -6,10 +6,10 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 2003-2004 Ullrich von Bassewitz                                       */
-/*               Römerstraße 52                                              */
-/*               D-70794 Filderstadt                                         */
-/* EMail:        uz@cc65.org                                                 */
+/* (C) 2003-2009, Ullrich von Bassewitz                                      */
+/*                Roemerstrasse 52                                           */
+/*                D-70794 Filderstadt                                        */
+/* EMail:         uz@cc65.org                                                */
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
@@ -82,12 +82,12 @@ struct mouse_callbacks {
     void (*show) (void);
     /* Show the mouse cursor */
 
-    void (*movex) (void);
+    void __fastcall__ (*movex) (int x);
     /* Move the mouse cursor to the new X coordinate. This function is called,
      * even when the cursor is currently invisible.
      */
 
-    void (*movey) (void);
+    void __fastcall__ (*movey) (int y);
     /* Move the mouse cursor to the new Y coordinate. This function is called,
      * even when the cursor is currently invisible.
      */
@@ -96,6 +96,9 @@ struct mouse_callbacks {
 /* The default mouse callbacks */
 extern const struct mouse_callbacks mouse_def_callbacks;
 
+/* The name of the standard mouse driver for a platform */
+extern const char mouse_stddrv[];
+
 
 
 /*****************************************************************************/
@@ -118,6 +121,9 @@ unsigned char __fastcall__ mouse_install (const struct mouse_callbacks* c,
 unsigned char __fastcall__ mouse_uninstall (void);
 /* Uninstall the currently loaded driver. Returns an error code. */
 
+const char* __fastcall__ mouse_geterrormsg (unsigned char code);
+/* Get an error message describing the error in code. */
+
 void __fastcall__ mouse_hide (void);
 /* Hide the mouse. The function manages a counter and may be called more than
  * once. For each call to mouse_hide there must be a call to mouse_show to make