MCPcopy Create free account
hub / github.com/axmolengine/axmol / onMouseMove

Method onMouseMove

tests/cpp-tests/Source/InputTest/MouseTest.cpp:96–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96bool MouseEventTest::onMouseMove(Event* event)
97{
98 EventMouse* e = (EventMouse*)event;
99 auto loc = e->getLocation();
100 std::string str = fmt::format("MousePosition:({},{})", loc.x, loc.y);
101 _labelPosition->setString(str);
102
103 return true;
104}
105
106bool MouseEventTest::onMouseScroll(Event* event)
107{

Callers

nothing calls this directly

Calls 3

formatFunction · 0.50
getLocationMethod · 0.45
setStringMethod · 0.45

Tested by

no test coverage detected