aboutsummaryrefslogtreecommitdiffstats
path: root/xpad.h
diff options
context:
space:
mode:
Diffstat (limited to 'xpad.h')
-rw-r--r--xpad.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/xpad.h b/xpad.h
new file mode 100644
index 0000000..2a06399
--- /dev/null
+++ b/xpad.h
@@ -0,0 +1,19 @@
+#ifndef _XPAD_H_
+#define _XPAD_H_
+
+#include <stdint.h>
+
+/* Return the number of bytes of x-pad data
+ * we have ready
+ */
+int xpad_len(void);
+
+/* Get one x-pad byte
+ */
+uint8_t xpad_byte(void);
+
+/* Calculate the two F-PAD bytes */
+uint16_t xpad_fpad(void);
+
+#endif
+