From 603f3fac82ccb77775d53fd77ae7c32167116ad7 Mon Sep 17 00:00:00 2001 From: Ian C Date: Mon, 3 Nov 2008 17:07:32 +0000 Subject: Initial snapshot code (in progress) --- include/keyboard.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/keyboard.h') 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 + /* 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 */ -- cgit v1.2.3