Share via


Overview | Methods | Fields | This Package | All Packages

OverviewMethodsFieldsThis PackageAll Packages

Control.getMouseButtons

Retrieves a value indicating the current state of the left, right, and middle mouse buttons.

Syntax

public static final int getMouseButtons()

Return Value

Returns an integer that represents the status of the left, right, and middle mouse buttons. Possible return values are obtained by applying the bitwise OR operation (|) to the MouseButton.LEFT, MouseButton.RIGHT, and MouseButton.MIDDLE constants defined in the MouseButton class.