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

Function getTouchPosition

src/SFML/Window/Android/InputImpl.cpp:374–382  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

372
373////////////////////////////////////////////////////////////
374Vector2i getTouchPosition(unsigned int finger)
375{
376 ActivityStates& states = getActivity();
377 const std::lock_guard lock(states.mutex);
378 const auto touch = states.touchEvents.find(static_cast<int>(finger));
379 if (touch != states.touchEvents.end())
380 return touch->second;
381 return {-1, -1};
382}
383
384
385////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 2

findMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected