Browse Source

Fix for issue #7766

Add initialization for OS_OSX.mouse_mode in OS_OSX::OS_OSX().  mouse_mode now defaults to OS::MOUSE_MODE_VISIBLE.
(cherry picked from commit 6921e118058ab193f4dfc09ad42f27f5261d7d15)
Brett-Mitchell 8 years ago
parent
commit
616850b3c0
1 changed files with 2 additions and 1 deletions
  1. 2 1
      platform/osx/os_osx.mm

+ 2 - 1
platform/osx/os_osx.mm

@@ -1781,7 +1781,8 @@ String OS_OSX::get_joy_guid(int p_device) const {
 OS_OSX* OS_OSX::singleton=NULL;
 OS_OSX* OS_OSX::singleton=NULL;
 
 
 OS_OSX::OS_OSX() {
 OS_OSX::OS_OSX() {
-
+	
+	mouse_mode=OS::MOUSE_MODE_VISIBLE;
 	main_loop=NULL;
 	main_loop=NULL;
 	singleton=this;
 	singleton=this;
 	autoreleasePool = [[NSAutoreleasePool alloc] init];
 	autoreleasePool = [[NSAutoreleasePool alloc] init];