예제 #1
0
        public void Update(InputUpdateType updateType)
        {
            if ((updateType & InputUpdateType.Dynamic) == InputUpdateType.Dynamic)
            {
                NativeInputSystem.Update(NativeInputUpdateType.Dynamic);
            }
            if ((updateType & InputUpdateType.Fixed) == InputUpdateType.Fixed)
            {
                NativeInputSystem.Update(NativeInputUpdateType.Fixed);
            }
            if ((updateType & InputUpdateType.BeforeRender) == InputUpdateType.BeforeRender)
            {
                NativeInputSystem.Update(NativeInputUpdateType.BeforeRender);
            }
            if ((updateType & InputUpdateType.Manual) == InputUpdateType.Manual)
            {
                NativeInputSystem.Update((NativeInputUpdateType)InputUpdateType.Manual);
            }

            #if UNITY_EDITOR
            if ((updateType & InputUpdateType.Editor) == InputUpdateType.Editor)
            {
                NativeInputSystem.Update(NativeInputUpdateType.Editor);
            }
            #endif
        }
예제 #2
0
 public void Update(InputUpdateType updateType)
 {
     NativeInputSystem.Update((NativeInputUpdateType)updateType);
 }