Small Basic Reference Documentation: Mouse Object

Small Basic: Reference Documentation > Mouse
 

 

http://smallbasic.com/img/object_32.png

Mouse

The mouse class provides accessors to get or set the mouse related properties, like the cursor position, pointer, etc.

Properties

http://smallbasic.com/img/property_16.png MouseX

Mouse.MouseX

Gets or sets the mouse cursor's x co-ordinate.

http://smallbasic.com/img/property_16.png MouseY

Mouse.MouseY

Gets or sets the mouse cursor's y co-ordinate.

http://smallbasic.com/img/property_16.png IsLeftButtonDown (This property is read-only.)

Mouse.IsLeftButtonDown

Gets whether or not the left button is pressed.

http://smallbasic.com/img/property_16.png IsRightButtonDown (This property is read-only.)

Mouse.IsRightButtonDown

Gets whether or not the right button is pressed.

Operations

http://smallbasic.com/img/method_16.png HideCursor

Mouse.HideCursor()

Hides the mouse cursor on the screen.

Returns

Nothing

http://smallbasic.com/img/method_16.png ShowCursor

Mouse.ShowCursor()

Shows the mouse cursors on the screen.

Returns

Nothing

 

See Also