Example #1
0
 public LegacyInput()
 {
     m_mousePositionProp        = TInput.GetProperty("mousePosition");
     m_mouseDeltaProp           = TInput.GetProperty("mouseScrollDelta");
     m_getKeyMethod             = TInput.GetMethod("GetKey", new Type[] { typeof(KeyCode) });
     m_getKeyDownMethod         = TInput.GetMethod("GetKeyDown", new Type[] { typeof(KeyCode) });
     m_getMouseButtonMethod     = TInput.GetMethod("GetMouseButton", new Type[] { typeof(int) });
     m_getMouseButtonDownMethod = TInput.GetMethod("GetMouseButtonDown", new Type[] { typeof(int) });
 }
Example #2
0
        public LegacyInput()
        {
            ExplorerCore.Log("Initializing Legacy Input support...");

            m_mousePositionProp        = TInput.GetProperty("mousePosition");
            m_getKeyMethod             = TInput.GetMethod("GetKey", new Type[] { typeof(KeyCode) });
            m_getKeyDownMethod         = TInput.GetMethod("GetKeyDown", new Type[] { typeof(KeyCode) });
            m_getMouseButtonMethod     = TInput.GetMethod("GetMouseButton", new Type[] { typeof(int) });
            m_getMouseButtonDownMethod = TInput.GetMethod("GetMouseButtonDown", new Type[] { typeof(int) });
        }
Example #3
0
        public LegacyInput()
        {
            Implementation.Log("Initializing Legacy Input support...");

            m_mousePositionProp        = TInput.GetProperty("mousePosition");
            m_mouseScrollDeltaProp     = TInput.GetProperty("mouseScrollDelta");
            m_getKeyMethod             = TInput.GetMethod("GetKey", new Type[] { typeof(KeyCode) });
            m_getKeyDownMethod         = TInput.GetMethod("GetKeyDown", new Type[] { typeof(KeyCode) });
            m_getKeyUpMethod           = TInput.GetMethod("GetKeyUp", new Type[] { typeof(KeyCode) });
            m_getMouseButtonMethod     = TInput.GetMethod("GetMouseButton", new Type[] { typeof(int) });
            m_getMouseButtonDownMethod = TInput.GetMethod("GetMouseButtonDown", new Type[] { typeof(int) });
            m_getMouseButtonUpMethod   = TInput.GetMethod("GetMouseButtonUp", new Type[] { typeof(int) });
        }