MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / UnicodeText

Method UnicodeText

src/lua/LuaHandleCallIns.cpp:688–703  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

686
687
688bool LuaHandle::UnicodeText(bool taken, uint32_t unicode) {
689 LUA_CALL_IN_CHECK(L, 2)
690 if (!PushCallIn(LUA_CI_UnicodeText)) {
691 return false; // the call is not defined, do not take the event
692 }
693
694 lua_pushboolean(L, taken);
695
696 lua_pushinteger(L, unicode);
697
698 if (!RunCallIn(LUA_CI_UnicodeText, 2, 1)) {
699 return false;
700 }
701
702 return PopBool(L, false);
703}
704
705
706bool LuaHandle::MousePress(bool taken, int x, int y, int button) {

Callers 1

handleEventFunction · 0.45

Calls 3

PopBoolFunction · 0.85
lua_pushbooleanFunction · 0.50
lua_pushintegerFunction · 0.50

Tested by

no test coverage detected