aboutsummaryrefslogtreecommitdiff
path: root/src/controller.h
blob: b459681d4b092de0d75c3605fef4795fb2e500b7 (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
46
47
48
49
50
51
52
53
54
55
#ifndef __CONTROLLER_H
#define __CONTROLLER_H

#include <SDL.h>

#include "controls.h"

extern struct Display {
	int	width;
	int	height;

	int	bpp;

	Uint32	flags;
	int	cursor;

	Uint32	foreground;
	Uint32	background;
} display;

extern struct Registry {
	struct Tab {
		struct Control	*controls;
		Uint32		cControls;

		char		*label;
	} *tabs;
	Uint32 cTabs;
} registry;

#ifndef PACKAGE_NAME
#define PACKAGE_NAME "Virtual OSC Controller"
#endif
#ifndef PACKAGE_VERSION
#define PACKAGE_VERSION "dev"
#endif

#define WINDOW_TITLE PACKAGE_NAME " (" PACKAGE_VERSION ")"

#ifndef PATH_SEPARATOR
# if defined(__OS2__) || defined(__NT__)
#  define PATH_SEPARATOR '\\'
# else
#  define PATH_SEPARATOR '/'
# endif
#endif

enum Controller_Event {
	CONTROLLER_OK = 0,
	CONTROLLER_ERR_THREAD
};

#endif