1 /*-----------------------------------------------------------------------
\r
3 ; XMOUSE - header file
\r
7 ; ****** XLIB - Mode X graphics library ****************
\r
8 ; ****** ****************
\r
9 ; ****** Written By Themie Gouthas ****************
\r
11 ; egg@dstos3.dsto.gov.au
\r
12 ; teg@bart.dsto.gov.au
\r
14 ; Terminology & notes:
\r
16 ; SRAM == System RAM
\r
17 ; X coordinates are in pixels unless explicitly stated
\r
19 ;-----------------------------------------------------------------------*/
\r
24 #define LEFT_PRESSED 1
\r
25 #define RIGHT_PRESSED 2
\r
27 /* GLOBAL VARS ========================================================= */
\r
29 extern WORD MouseInstalled; /* Indicates whether mouse handler installed */
\r
30 extern WORD MouseHidden; /* Indicates whether mouse cursor is hidden */
\r
31 extern WORD MouseButtonStatus;/* Holds the mouse button status */
\r
32 extern WORD MouseX; /* Current X position of mouse cursor */
\r
33 extern WORD MouseY; /* Current Y position of mouse cursor */
\r
34 extern BYTE MouseFrozen; /* Disallows position updates if TRUE */
\r
35 extern BYTE MouseColor; /* The mouse cursors colour */
\r
37 /* FUNCTIONS =========================================================== */
\r
45 void x_mouse_init(void); /* Initialize mouse cursor */
\r
47 void x_define_mouse_cursor( /* Define and set a cursor shape */
\r
51 void x_update_mouse(void); /* Force mouse cursor position update */
\r
53 void x_show_mouse(void); /* Show mouse cursor if hidden */
\r
55 void x_hide_mouse(void); /* Hide mouse cursor if visible */
\r
57 void x_mouse_remove(void); /* Remove installed mouse handler */
\r
59 void x_position_mouse( /* Set the mouse position */
\r
63 void x_put_cursor( /* Draw the mouse cursor (NOT FOR */
\r
64 int x, /* general use) */
\r
71 void x_mouse_window(int x0, /* Define a mouse window */
\r