-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsystemInterface.h
More file actions
47 lines (39 loc) · 874 Bytes
/
systemInterface.h
File metadata and controls
47 lines (39 loc) · 874 Bytes
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
43
44
45
46
47
#ifndef _SI_H__
#define _SI_H__
//Keyboard Input
#define NUM_BUTTON 12
#ifdef WINMAIN_CALL
const short keys[NUM_BUTTON] = {
VK_UP,VK_DOWN,VK_LEFT,VK_RIGHT,
'A','Q','S','W','D','E',
VK_SPACE,VK_ESCAPE };
bool buttons[NUM_BUTTON];
bool sound;
#else
extern bool buttons[NUM_BUTTON];
extern bool sound;
#endif
#include <wchar.h>
#define KB_QUEUE_LEN 5
extern wchar_t keyboardInput[KB_QUEUE_LEN];
extern bool specialKey[KB_QUEUE_LEN];
bool IsShiftPress();
struct Mouse
{
short x,y;
bool btn,rbtn;
bool last;
};
#ifdef WINMAIN_CALL
Mouse mouse;
#else
extern Mouse mouse;
#endif
//Dialogs
void message(char* title,char* text, ... );
#define SAFE_DELETE(a) if(a) delete a; a=0;
#define SAFE_DELETE_ARRAY(a) if(a) delete [] a; a=0;
//Special Credits
void OpenLink(char *url);
void SetHandCursor(bool w);
#endif //_SI_H__