///////////////////////////////////////////////////////
| 372 | |
| 373 | //////////////////////////////////////////////////////////// |
| 374 | Vector2i 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 | //////////////////////////////////////////////////////////// |