//------------------------------------------------
		//------------------------------------------------
		void PointerSystem::OnDestroy()
		{
			AddPointerRemoveEvent(m_pointerId);

            SFMLWindow::Get()->RemoveMouseDelegates();

			m_screen = nullptr;
		}
		//------------------------------------------------
		//------------------------------------------------
		void PointerSystem::OnDestroy()
		{
			AddPointerRemoveEvent(m_pointerId);

			m_mouseButtonConnection = nullptr;
			m_mouseMovedConnection = nullptr;

			m_screen = nullptr;
		}
		//----------------------------------------------------
		//----------------------------------------------------
		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);
			}
		}