- [NEW] mouse.discard()
This commit is contained in:
6
lua.cpp
6
lua.cpp
@@ -777,6 +777,11 @@ extern "C" {
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int cpp_mouse_discard(lua_State *L) {
|
||||
mdiscard();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
// key
|
||||
// ===============================================
|
||||
@@ -949,6 +954,7 @@ void push_lua_funcs() {
|
||||
lua_pushcfunction(L,cpp_mouse_wheel); lua_setfield(L, -2, "wheel");
|
||||
lua_pushcfunction(L,cpp_mouse_down); lua_setfield(L, -2, "down");
|
||||
lua_pushcfunction(L,cpp_mouse_press); lua_setfield(L, -2, "press");
|
||||
lua_pushcfunction(L,cpp_mouse_discard); lua_setfield(L, -2, "discard");
|
||||
|
||||
lua_pushinteger(L, 1); lua_setfield(L, -2, "LEFT");
|
||||
lua_pushinteger(L, 2); lua_setfield(L, -2, "MIDDLE");
|
||||
|
||||
Reference in New Issue
Block a user