summaryrefslogtreecommitdiff
path: root/src/client/interface.h
blob: daf127558d2a909a7f0531c99588c26df7fc35c4 (plain)
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

#ifndef INTERFACE_H

#    define INTERFACE_H

#    include <stdio.h>
#    include <string.h>
#    include <time.h>

#    include <SDL.h>
#    include <SDL_image.h>
#    include <SDL_thread.h>
#    include "main.h"

/*
#include <SDL_net.h>
*/

#    define SDL_SUBSYSTEMS SDL_INIT_VIDEO|SDL_INIT_TIMER

// windows title
#    define WINDOW_TITLE "Tuxánci " TUXANCI_VERSION
#    define WIN_BPP 0
#    define USR_EVT_TIMER 0

// interval (in ms) of triggering akcia();
#    define INTERVAL 50

// velikost klavesoveho bufferu (ve znacich)
#    define KEYBOARD_BUFFER_SIZE 256

extern bool_t isInterfaceInicialized();
extern void enableKeyboardBuffer();
extern void disableKeyboardBuffer();
extern int initSDL();
extern void activeSlowHack();
extern SDL_Surface *getSDL_Screen();
extern void getMousePosition(int *x, int *y);
extern int isMouseClicked();
extern int isPressAnyKey();
extern void interfaceRefresh();
extern void eventSDL();
extern void quitSDL();

#endif