protected void RegisterTouchEvent(GLGame game) { m_TouchHandler = new TouchHandler(1.0f, 1.0f); //IOSInput.Instance.Initialize(m_TouchHandler); IOSInput input = (IOSInput)game.GetInput(); input.Initialize(m_TouchHandler); // マルチタッチを有効にする View.MultipleTouchEnabled = true; }
public void OnSurfaceCreated(GLKView glkView) { m_GLGraphics = new GLGraphics(glkView); Debug.WriteLine(string.Format("Width:{0} / Height:{1}", m_GLGraphics.GetWidth(), m_GLGraphics.GetHeight())); m_Input = new IOSInput(); lock (m_StateChanged) { if (m_State == GLGameState.Initialized) { m_Screen = GetStartScreen(); } m_State = GLGameState.Running; m_Screen.Resume(); } }