projects
/
neverball
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add a "idle" method to the state structure
[neverball]
/
share
/
state.c
diff --git
a/share/state.c
b/share/state.c
index
36fc960
..
e8f52ed
100644
(file)
--- a/
share/state.c
+++ b/
share/state.c
@@
-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();
+}
+
/*---------------------------------------------------------------------------*/