| 177 | } |
| 178 | |
| 179 | std::optional<Vector2f> TouchesController::MultiInfo::getPosition( Finger fing ) const |
| 180 | { |
| 181 | const auto& infoRef = info_[int(fing)]; |
| 182 | if ( infoRef.id != -1 ) |
| 183 | return infoRef.position; |
| 184 | return {}; |
| 185 | } |
| 186 | |
| 187 | std::optional<Vector2f> TouchesController::MultiInfo::getPosition( int id ) const |
| 188 | { |