Browse Source

Remove mouseLock when opening l3d (#137)

Sometimes the mouse stayed locked when changing between tabs in hide.
The mouseLock is now set to false every time we open a 3d scene to fix this.
Jed974 4 năm trước cách đây
mục cha
commit
8b6ef12fc5
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      hide/view/l3d/Level3D.hx

+ 2 - 0
hide/view/l3d/Level3D.hx

@@ -80,6 +80,8 @@ class CamController extends h3d.scene.CameraController {
 				pushY = e.relY;
 			default:
 			}
+		case EFocus:
+			@:privateAccess scene.window.mouseLock = false;
 		default:
 		}
 	}