MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / setConstraint

Method setConstraint

src/Core/System/Cursor.cpp:186–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184 }
185
186 void Cursor::setConstraint(
187 const std::function<std::pair<int, int>(Cursor*)> constraint,
188 std::function<bool()> condition)
189 {
190 m_constraint = constraint;
191 m_constraintCondition = condition;
192 }
193
194 bool Cursor::isPressed(sf::Mouse::Button button)
195 {

Callers 1

LoadClassCursorFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected