Retrieves the number of buttons on the mouse connected to the system.
public static final int getMouseButtons()
Returns an integer value representing the number of buttons on the mouse.
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