Renamed getEvents() -> poll() on love.mouse/keyboard

Rolled love.mouse.update() into love.mouse.poll()
This commit is contained in:
rxi
2016-09-24 11:02:49 +01:00
parent c8453c6f60
commit 09e5bb0628
3 changed files with 6 additions and 12 deletions

View File

@@ -100,7 +100,7 @@ int l_keyboard_isDown(lua_State *L) {
}
int l_keyboard_getEvents(lua_State *L) {
int l_keyboard_poll(lua_State *L) {
lua_newtable(L);
int idx = 1;
while (keyboard_events.readi != keyboard_events.writei) {
@@ -120,7 +120,7 @@ int l_keyboard_getEvents(lua_State *L) {
int luaopen_keyboard(lua_State *L) {
luaL_Reg reg[] = {
{ "getEvents", l_keyboard_getEvents },
{ "poll", l_keyboard_poll },
{ "isDown", l_keyboard_isDown },
{ 0, 0 },
};