SystemInformation.getMouseButtons

Overview | Methods | This Package | All Packages

SystemInformation.getMouseButtons

Retrieves the number of buttons on the mouse connected to the system.

Syntax

public static final int getMouseButtons()

Return Value

Returns an integer value representing the number of buttons on the mouse.

Remarks

If no mouse is installed, this method returns a zero value. You can use this method to determine the number of mouse buttons that your application can support and provide additional functionality if more than two buttons are available.

See Also   getMouseButtonsSwapped, getMousePresent