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

Function processSlots

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

Source from the content-addressed store, hash-verified

323}
324
325void processSlots()
326{
327 for (auto& slot : touchSlots)
328 {
329 if (slot.oldId == slot.id)
330 {
331 pushEvent(sf::Event::TouchMoved{*slot.id, slot.pos});
332 }
333 else
334 {
335 if (slot.oldId.has_value())
336 pushEvent(sf::Event::TouchEnded{*slot.oldId, slot.pos});
337 if (slot.id.has_value())
338 pushEvent(sf::Event::TouchBegan{*slot.id, slot.pos});
339
340 slot.oldId = slot.id;
341 }
342 }
343}
344
345std::optional<sf::Event> eventProcess()
346{

Callers 1

eventProcessFunction · 0.85

Calls 1

pushEventFunction · 0.85

Tested by

no test coverage detected