summaryrefslogtreecommitdiff
path: root/include/keyboard.h
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2008-11-03 17:07:32 +0000
committerIan C <ianc@noddybox.co.uk>2008-11-03 17:07:32 +0000
commit603f3fac82ccb77775d53fd77ae7c32167116ad7 (patch)
tree912d684087250ca5cac6e597e06277f1c83f33b0 /include/keyboard.h
parent1aaaca17a1dc30727578e5fa3755ee6fc05b238d (diff)
Initial snapshot code (in progress)
Diffstat (limited to 'include/keyboard.h')
-rw-r--r--include/keyboard.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/keyboard.h b/include/keyboard.h
index 0827b76..93538ec 100644
--- a/include/keyboard.h
+++ b/include/keyboard.h
@@ -22,6 +22,8 @@
#ifndef DS81_KEYBOARD_H
#define DS81_KEYBOARD_H
+#include <stdio.h>
+
/* Note that the first 40 values purposefully are the keyboard matrix keys.
Note also that they are in display order, not matrix order.
*/
@@ -132,4 +134,9 @@ void SK_DefinePad(SoftKey pad, SoftKey key);
*/
const char *SK_KeyName(SoftKey pad);
+/* Allows the keyboard to save/restore its state from a stream
+*/
+void SK_SaveSnapshot(FILE *fp);
+void SK_LoadSnapshot(FILE *fp);
+
#endif /* DS81_KEYBOARD_H */