[go: up one dir, main page]

Menu

[r7]: / engine / mouse.h  Maximize  Restore  History

Download this file

44 lines (36 with data), 1.0 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Mouse support
#define MAX_MBUTTONS 64
#define RANGE_GRID 1
#define RANGE_BUTTON 2
#define RANGE_BUTTONIN 4
#define RANGE_LBUTTON 8
#define RANGE_RBUTTON 16
#ifdef __cplusplus
extern "C" {
#endif
typedef struct MOUSERANGE
{
int left,top,right,bottom;
int id,pointer,flags;
int gw,gh;
RLE_SPRITE *normal,*in;
} MOUSERANGE;
extern int MouseOver,MouseRanges;
extern long MouseID,MouseGridX,MouseGridY,MouseMapX,MouseMapY;
extern MOUSERANGE MouseRange[MAX_MBUTTONS];
extern void AddMouseRange(int ID, int x, int y, int w, int h);
extern void ClearMouseRanges();
extern void SetRangeGrid(int ID, int w, int h);
extern void SetRangePointer(int ID, int pointerno);
extern void SetRangeButton(int ID, char *normal, char *in);
extern void CheckMouseRanges();
extern void DrawButtons();
extern void DrawRanges();
extern void PushButton(int ID, int state);
extern void RightClick(int ID);
extern void SaveRanges();
extern void RestoreRanges();
extern void WaitForMouseRelease();
#ifdef __cplusplus
}
#endif