2 ; Maciej 'YTM/Elysium' Witkowiak
6 ; Wrapper for GEOS standard input device interface
9 .export _mouse_init, _mouse_done
10 .export _mouse_hide, _mouse_show
11 .export _mouse_box, _mouse_info
12 .export _mouse_x, _mouse_y
13 .export _mouse_move, _mouse_buttons
15 .import popax, popsreg, addysp1
18 .include "../inc/const.inc"
19 .include "../inc/jumptab.inc"
20 .include "../inc/geossym.inc"
26 ; --------------------------------------------------------------------------
28 ; unsigned char __fastcall__ mouse_init (unsigned char port,
29 ; unsigned char sprite,
30 ; unsigned char type);
34 jsr popax ; ignore all parameters
51 ; --------------------------------------------------------------------------
53 ; void mouse_done (void);
58 ; --------------------------------------------------------------------------
60 ; void mouse_hide (void);
63 _mouse_hide = MouseOff
65 ; --------------------------------------------------------------------------
67 ; void mouse_show (void);
72 ; --------------------------------------------------------------------------
74 ; void __fastcall__ mouse_box (int minx, int miny, int maxx, int maxy);
87 sta mouseRight+1 ; maxx
101 sta mouseLeft+1 ; minx
103 jmp addysp1 ; Drop params, return
105 ; --------------------------------------------------------------------------
107 ; int __fastcall__ mouse_x (void);
115 ; --------------------------------------------------------------------------
117 ; int __fastcall__ mouse_y (void);
125 ; --------------------------------------------------------------------------
127 ; void mouse_info (...);
134 ; --------------------------------------------------------------------------
136 ; void __fastcall__ mouse_move (int x, int y);
141 sei ; Disable interrupts
151 ; --------------------------------------------------------------------------
153 ; unsigned char mouse_buttons (void);