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

Function getTouchPosition

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

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

Source from the content-addressed store, hash-verified

654
655////////////////////////////////////////////////////////////
656Vector2i getTouchPosition(unsigned int finger)
657{
658 for (const auto& slot : touchSlots)
659 {
660 if (slot.id == finger)
661 return slot.pos;
662 }
663
664 return {};
665}
666
667
668////////////////////////////////////////////////////////////

Callers 1

getPositionFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected