Beispiel #1
0
        public void LockCursor()
        {
            if (!renderingEnabled)
            {
                return;
            }

            Utils.LockCursor();
            OnMouseLock?.Invoke();
        }
        public void LockCursor()
        {
            if (!renderingEnabled || DataStore.i.isSignUpFlow.Get())
            {
                return;
            }

            Utils.LockCursor();
#if !WEB_PLATFORM
            OnMouseLock?.Invoke();
#endif
        }
Beispiel #3
0
        public void LockCursor()
        {
            if (!renderingEnabled)
            {
                return;
            }

            Utils.LockCursor();
#if !WEB_PLATFORM
            OnMouseLock?.Invoke();
#endif
        }
        //TODO(Brian): Move all this mechanism to a new MouseLockController and branch
        //             behaviour using strategy pattern instead of this.

        /// <summary>
        /// Externally -ONLY- called by the browser
        /// </summary>
        /// <param name="val">1 is locked, 0 is unlocked</param>
        public void UnlockCursorBrowser(int val)
        {
            bool lockPointer = val != 0;

            Utils.BrowserSetCursorState(lockPointer);
            if (lockPointer)
            {
                OnMouseLock?.Invoke();
            }
            else
            {
                OnMouseUnlock?.Invoke();
            }
        }
 public void RaiseMouseLock()
 {
     OnMouseLock?.Invoke();
 }