MCPcopy Create free account
hub / github.com/SFML/SFML / isTouchDown

Function isTouchDown

src/SFML/Window/DRM/InputImpl.cpp:647–652  ·  view source on GitHub ↗

///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

645
646////////////////////////////////////////////////////////////
647bool isTouchDown(unsigned int finger)
648{
649 return std::any_of(touchSlots.cbegin(),
650 touchSlots.cend(),
651 [finger](const TouchSlot& slot) { return slot.id == finger; });
652}
653
654
655////////////////////////////////////////////////////////////

Callers 1

isDownFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected