Browse Source

Added Mouse.PointerVisible.

Mark Sibly 9 years ago
parent
commit
bcbf6acfb5
1 changed files with 10 additions and 0 deletions
  1. 10 0
      modules/mojo/input/mouse.monkey2

+ 10 - 0
modules/mojo/input/mouse.monkey2

@@ -39,6 +39,16 @@ Class MouseDevice Extends InputDevice
 		Next
 	End
 	
+	Property PointerVisible:Bool()
+	
+		Return SDL_ShowCursor( -1 )=SDL_ENABLE
+		
+	Setter( pointerVisible:Bool )
+	
+		SDL_ShowCursor( pointerVisible ? SDL_ENABLE Else SDL_DISABLE )
+	
+	End
+	
 	Property X:Int()
 		Return Location.x
 	End