2 GEOS mouse and sprite functions
4 by Maciej 'YTM/Elysium' Witkowiak
10 void StartMouseMode(void);
11 void ClearMouseMode(void);
14 char __fastcall__ IsMseInRegion(struct window *region);
16 void __fastcall__ DrawSprite(char spritenum, const char *spritepic);
17 void __fastcall__ PosSprite(char spritenum, struct pixel *position);
18 void __fastcall__ EnablSprite(char spritenum);
19 void __fastcall__ DisablSprite(char spritenum);
21 void __fastcall__ InitTextPrompt(char height);
22 void __fastcall__ PromptOn(struct pixel *position);
24 char GetNextChar(void);
26 /* keyboard constants */
40 #define KEY_UPARROW 21
48 #define KEY_INVALID 31
49 #define KEY_LEFT BACKSPACE
58 #define KEY_DELETE 127
62 /* values of faultData - pointer position vs. mouseWindow */
65 #define OFFBOTTOM_BIT 6
67 #define OFFRIGHT_BIT 4
70 #define SET_OFFTOP 0x80
71 #define SET_OFFBOTTOM 0x40
72 #define SET_OFFLEFT 0x20
73 #define SET_OFFRIGHT 0x10
74 #define SET_OFFMENU 0x08
82 #define SET_MSE_ON 0x80
83 #define SET_MENUON 0x40
84 #define SET_ICONSON 0x20
88 #define KEYPRESS_BIT 7
92 #define SET_KEYPRESS 0x80
93 #define SET_INPUTCHG 0x40
94 #define SET_MOUSE 0x20