2
0
Эх сурвалжийг харах

Added Mouse.PointerVisible.

Mark Sibly 9 жил өмнө
parent
commit
bcbf6acfb5

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

@@ -39,6 +39,16 @@ Class MouseDevice Extends InputDevice
 		Next
 		Next
 	End
 	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()
 	Property X:Int()
 		Return Location.x
 		Return Location.x
 	End
 	End