]> git.sur5r.net Git - cc65/blob - include/geos/gsprite.h
functions that do not modify data take const char* as argument
[cc65] / include / geos / gsprite.h
1 /*
2   GEOS mouse and sprite functions
3
4   ported to small C on 27.10.1999
5   by Maciej 'YTM/Elysium' Witkowiak
6 */
7
8 #ifndef _GSPRITE_H
9 #define _GSPRITE_H
10
11 void __fastcall__ StartMouseMode(void);
12 void __fastcall__ ClearMouseMode(void);
13 void __fastcall__ MouseUp(void);
14 void __fastcall__ MouseOff(void);
15 char __fastcall__ IsMseInRegion(struct window *region);
16
17 void __fastcall__ DrawSprite(char spritenum, const char *spritepic);
18 void __fastcall__ PosSprite(char spritenum, struct pixel *position);
19 void __fastcall__ EnablSprite(char spritenum);
20 void __fastcall__ DisablSprite(char spritenum);
21
22 void __fastcall__ InitTextPrompt(char height);
23 void __fastcall__ PromptOn(struct pixel *position);
24 void __fastcall__ PromptOff(void);
25 char __fastcall__ GetNextChar(void);
26
27 /* keyboard constants */
28 #define KEY_F1          1
29 #define KEY_F2          2
30 #define KEY_F3          3
31 #define KEY_F4          4
32 #define KEY_F5          5
33 #define KEY_F6          6
34 #define KEY_NOSCRL      7
35 #define KEY_ENTER       11
36 #define KEY_F7          14
37 #define KEY_F8          15
38 #define KEY_UP          16
39 #define KEY_DOWN        17
40 #define KEY_HOME        18
41 #define KEY_CLEAR       19
42 #define KEY_LARROW      20
43 #define KEY_UPARROR     21
44 #define KEY_STOP        22
45 #define KEY_RUN         23
46 #define KEY_BPS         24
47 #define KEY_HELP        25
48 #define KEY_ALT         26
49 #define KEY_ESC         27
50 #define KEY_INSERT      28
51 #define KEY_DELETE      29
52 #define KEY_RIGHT       30
53 #define KEY_INVALID     31
54 #define KEY_LEFT        BACKSPACE
55
56 /* values of faultData - pointer position vs. mouseWindow */
57 /* bit numbers */
58 #define OFFTOP_BIT      7
59 #define OFFBOTTOM_BIT   6
60 #define OFFLEFT_BIT     5
61 #define OFFRIGHT_BIT    4
62 #define OFFMENU_BIT     3
63 /* bit masks */
64 #define SET_OFFTOP      0x80
65 #define SET_OFFBOTTOM   0x40
66 #define SET_OFFLEFT     0x20
67 #define SET_OFFRIGHT    0x10
68 #define SET_OFFMENU     0x08
69
70 /* mouseOn */
71 /* bit numbers */
72 #define MOUSEON_BIT     7
73 #define MENUON_BIT      6
74 #define ICONSON_BIT     5
75 /* bit masks */
76 #define SET_MSE_ON      0x80
77 #define SET_MENUON      0x40
78 #define SET_ICONSON     0x20
79
80 /* pressFlag */
81 /* bit numbers */
82 #define KEYPRESS_BIT    7
83 #define INPUT_BIT       6
84 #define MOUSE_BIT       5
85 /* bit masks */
86 #define SET_KEYPRESS    0x80
87 #define SET_INPUTCHG    0x40
88 #define SET_MOUSE       0x20
89                   
90 #endif