Add a "idle" method to the state structure
[neverball] / share / state.c
index 36fc960..e8f52ed 100644 (file)
@@ -163,4 +163,10 @@ int st_buttn(int b, int d)
     return (state && state->buttn) ? state->buttn(b, d) : 1;
 }
 
+void st_idle(void)
+{
+    if (state && state->idle)
+        state->idle();
+}
+
 /*---------------------------------------------------------------------------*/