aboutsummaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test.c')
-rwxr-xr-xtest.c27
1 files changed, 26 insertions, 1 deletions
diff --git a/test.c b/test.c
index e34a7a8..4909d50 100755
--- a/test.c
+++ b/test.c
@@ -7,10 +7,35 @@
#include <survive.h>
#include <os_generic.h>
-#include <DrawFunctions.h>
+#include <CNFGFunctions.h>
struct SurviveContext * ctx;
+void HandleKey( int keycode, int bDown )
+{
+ if( !bDown ) return;
+
+ if( keycode == 'O' || keycode == 'o' )
+ {
+ survive_send_magic(ctx,1,0,0);
+ }
+ if( keycode == 'F' || keycode == 'f' )
+ {
+ survive_send_magic(ctx,0,0,0);
+ }
+}
+
+void HandleButton( int x, int y, int button, int bDown )
+{
+}
+
+void HandleMotion( int x, int y, int mask )
+{
+}
+
+void HandleDestroy()
+{
+}
static void dump_iface( struct SurviveObject * so, const char * prefix )