public void UnlockCursor() { Utils.UnlockCursor(); #if !WEB_PLATFORM OnMouseUnlock?.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(); } }
//Externally called by the browser public void UnlockCursor() { Utils.UnlockCursor(); OnMouseUnlock?.Invoke(); }
public void RaiseMouseUnlock() { OnMouseUnlock?.Invoke(); }