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

Method onMouseScroll

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

Source from the content-addressed store, hash-verified

104}
105
106bool MouseEventTest::onMouseScroll(Event* event)
107{
108 EventMouse* e = (EventMouse*)event;
109 std::string str = fmt::format("Mouse Scroll detected, X:{} Y:{}", e->getScrollX(), e->getScrollY());
110 _labelAction->setString(str.c_str());
111
112 return true;
113}
114
115std::string MouseEventTest::title() const
116{

Callers

nothing calls this directly

Calls 3

formatFunction · 0.50
setStringMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected