Added love.event.clear, because why not. (Issue #202).

This commit is contained in:
rude
2011-03-16 23:23:20 +01:00
parent ffa9e205eb
commit 20364c67bd
4 changed files with 23 additions and 0 deletions
+7
View File
@@ -177,12 +177,19 @@ namespace sdl
return 1;
}
int w_clear(lua_State * L)
{
instance->clear();
return 0;
}
// List of functions to wrap.
static const luaL_Reg functions[] = {
{ "pump", w_pump },
{ "poll", w_poll },
{ "wait", w_wait },
{ "push", w_push },
{ "clear", w_clear },
{ 0, 0 }
};