MCPcopy Create free account
hub / github.com/danomatika/ofxLua / scriptMouseReleased

Method scriptMouseReleased

src/ofxLua.cpp:370–383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

368}
369
370void ofxLua::scriptMouseReleased(int x, int y, int button) {
371 if(L == NULL || !isFunction("mouseReleased")) {
372 return;
373 }
374 lua_getglobal(L, "mouseReleased");
375 lua_pushinteger(L, x);
376 lua_pushinteger(L, y);
377 lua_pushinteger(L, button);
378 if(lua_pcall(L, 3, 0, 0) != 0) {
379 std::string msg = "Error running mouseReleased(): "
380 + (std::string) lua_tostring(L, LUA_STACK_TOP);
381 errorOccurred(msg);
382 }
383}
384
385void ofxLua::scriptMouseScrolled(int x, int y, float scrollX, float scrollY) {
386 if(L == NULL || !isFunction("mouseScrolled")) {

Callers 2

mouseReleasedMethod · 0.80
mouseReleasedMethod · 0.80

Calls 2

lua_getglobalFunction · 0.85
lua_pushintegerFunction · 0.85

Tested by

no test coverage detected