diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2010-12-30 05:04:04 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2010-12-30 05:04:04 +0100 |
commit | e465a280b562cf0ed4ab136e240437f6574189f8 (patch) | |
tree | ceb1f90df5dd15630c98f28b418aa1c475836799 /src/controller.h | |
download | virtualosc-e465a280b562cf0ed4ab136e240437f6574189f8.tar.gz |
old Virtual OSC Controller project exported from SVN working copy
unfortunately the repository is long gone, so is its history
working and tested for:
* POSIX/gcc (Linux, Windows Cygwin, OS/2 EMX)
* Open Watcom C (native OS/2 and Windows)
Diffstat (limited to 'src/controller.h')
-rw-r--r-- | src/controller.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/src/controller.h b/src/controller.h new file mode 100644 index 0000000..b459681 --- /dev/null +++ b/src/controller.h @@ -0,0 +1,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
+
|