summaryrefslogtreecommitdiff
path: root/spout.h
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2010-07-29 19:09:26 +0100
committerNick White <git@njw.me.uk>2010-07-29 19:09:26 +0100
commitca61acd4506afb0125ae64b33f5f90ee198c0f6e (patch)
tree5025ec5d4bbf8c2494f393e0699ac236fb8e58d6 /spout.h
parent3a4a0d3f39c25adb6bc8ead135ed39634b2bcfbf (diff)
Simplify things alot, and add zoom and fullscreen
Added some documentation Improved build system Consolidated code into spout.c Added fullscreen option Added zoom option Removed unneeded functions
Diffstat (limited to 'spout.h')
-rw-r--r--spout.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/spout.h b/spout.h
new file mode 100644
index 0000000..88d6562
--- /dev/null
+++ b/spout.h
@@ -0,0 +1,30 @@
+/*
+ * This file is part of Spout
+ *
+ * See COPYING file for copyright, license and warranty details.
+ *
+ */
+
+#define SDL_WIDTH (128 * zoom)
+#define SDL_HEIGHT (88 * zoom)
+
+#define PAD_RI 0x01
+#define PAD_LF 0x02
+#define PAD_DN 0x04
+#define PAD_UP 0x08
+#define PAD_B 0x10
+#define PAD_A 0x20
+#define PAD_D 0x40
+#define PAD_C 0x80
+
+#define TRG_RI 0x0100
+#define TRG_LF 0x0200
+#define TRG_DN 0x0400
+#define TRG_UP 0x0800
+#define TRG_B 0x1000
+#define TRG_A 0x2000
+#define TRG_D 0x4000
+#define TRG_C 0x8000
+
+#define PP_MODE_SINGLE 0
+#define PP_MODE_REPEAT 1