| 323 | } |
| 324 | |
| 325 | void 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 | |
| 345 | std::optional<sf::Event> eventProcess() |
| 346 | { |
no test coverage detected