public void Tick(float elapse, int game_frame) { if (!m_Enable) { return; } if (PlatformUtils.IsPCPlatform()) { string event_type = InputID.TOUCH_NONE; if (Input.GetButtonDown("Fire1")) { if (!m_IsTouchDown) { event_type = InputID.TOUCH_BEGIN; } m_IsTouchDown = true; } else if (Input.GetButtonUp("Fire1")) { if (m_IsTouchDown) { event_type = InputID.TOUCH_END; } m_IsTouchDown = false; } else if (Input.GetButton("Fire1")) { if (m_IsTouchDown && Input.mousePosition != m_TouchInfo.getLocation()) { event_type = InputID.TOUCH_MOVED; } } if (event_type != InputID.TOUCH_NONE) { m_TouchInfo.setTouchInfo(Input.mousePosition); EventController.TriggerEvent(event_type, m_TouchInfo); } } else { } }