button: add modifiers field in __newindex
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
061152b874
commit
39c351d112
2
button.c
2
button.c
|
@ -219,6 +219,8 @@ luaA_button_newindex(lua_State *L)
|
||||||
case A_TK_BUTTON:
|
case A_TK_BUTTON:
|
||||||
button->button = luaL_checknumber(L, 3);
|
button->button = luaL_checknumber(L, 3);
|
||||||
break;
|
break;
|
||||||
|
case A_TK_MODIFIERS:
|
||||||
|
luaA_setmodifiers(L, 3, &button->mod);
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue