mouse: stop using otable
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
adf0fd3234
commit
a4373e65cf
2
mouse.c
2
mouse.c
|
@ -218,7 +218,7 @@ luaA_button_array_set(lua_State *L, int idx, button_array_t *buttons)
|
||||||
int
|
int
|
||||||
luaA_button_array_get(lua_State *L, button_array_t *buttons)
|
luaA_button_array_get(lua_State *L, button_array_t *buttons)
|
||||||
{
|
{
|
||||||
luaA_otable_new(L);
|
lua_createtable(L, buttons->len, 0);
|
||||||
for(int i = 0; i < buttons->len; i++)
|
for(int i = 0; i < buttons->len; i++)
|
||||||
{
|
{
|
||||||
luaA_button_userdata_new(L, buttons->tab[i]);
|
luaA_button_userdata_new(L, buttons->tab[i]);
|
||||||
|
|
Loading…
Reference in New Issue