//---------------------------------------------------- //---------------------------------------------------- void PointerSystem::OnTouchUp(s32 in_systemId) { auto it = m_systemIdToPointerIdMap.find(in_systemId); if (it != m_systemIdToPointerIdMap.end()) { AddPointerUpEvent(it->second, ChilliSource::Pointer::InputType::k_touch); AddPointerRemoveEvent(it->second); m_systemIdToPointerIdMap.erase(it); } }
//---------------------------------------------- //---------------------------------------------- void PointerSystem::OnMouseButtonEvent(sf::Mouse::Button in_button, SFMLWindow::MouseButtonEvent in_event, s32 in_xPos, s32 in_yPos) { ChilliSource::Pointer::InputType type = ButtonIdToInputType(in_button); if (type == ChilliSource::Pointer::InputType::k_none) { return; } switch (in_event) { case SFMLWindow::MouseButtonEvent::k_pressed: AddPointerDownEvent(m_pointerId, type); break; case SFMLWindow::MouseButtonEvent::k_released: AddPointerUpEvent(m_pointerId, type); break; } }