Example #1
0
/** Create a new mouse button bindings.
 * \param L The Lua VM state.
 * \return The number of elements pushed on stack.
 */
static int
luaA_button_new(lua_State *L)
{
    return luaA_class_new(L, &button_class);
}
Example #2
0
/** Create a new key object.
 * \param L The Lua VM state.
 * \return The number of elements pushed on stack.
 */
static int
luaA_key_new(lua_State *L)
{
    return luaA_class_new(L, &key_class);
}
Example #3
0
static int
luaA_timer_new(lua_State *L)
{
    luaA_class_new(L, &timer_class);
    return 1;
}