## Uses of Class
javafx.scene.input.MouseButton

- Packages that use MouseButton
  Package | Description
  --- | ---
  javafx.scene.input | Provides the set of classes for mouse and keyboard input event handling.

- - ### Uses of MouseButton in javafx.scene.input

    Methods in javafx.scene.input that return MouseButton
    Modifier and Type | Method and Description
    --- | ---
    `MouseButton` | MouseEvent.`getButton()` Which, if any, of the mouse buttons is responsible for this event.
    `static MouseButton` | MouseButton.`valueOf(String name)` Returns the enum constant of this type with the specified name.
    `static MouseButton[]` | MouseButton.`values()` Returns an array containing the constants of this enum type, in the order they are declared.

    Constructors in javafx.scene.input with parameters of type MouseButton
    Constructor and Description
    `MouseDragEvent(EventType<MouseDragEvent> eventType, double x, double y, double screenX, double screenY, MouseButton button, int clickCount, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown, boolean primaryButtonDown, boolean middleButtonDown, boolean secondaryButtonDown, boolean synthesized, boolean popupTrigger, PickResult pickResult, Object gestureSource)` Constructs new MouseDragEvent event with null source and target.
    `MouseDragEvent(Object source, EventTarget target, EventType<MouseDragEvent> eventType, double x, double y, double screenX, double screenY, MouseButton button, int clickCount, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown, boolean primaryButtonDown, boolean middleButtonDown, boolean secondaryButtonDown, boolean synthesized, boolean popupTrigger, PickResult pickResult, Object gestureSource)` Constructs new MouseDragEvent event.
    `MouseEvent(EventType<? extends MouseEvent> eventType, double x, double y, double screenX, double screenY, MouseButton button, int clickCount, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown, boolean primaryButtonDown, boolean middleButtonDown, boolean secondaryButtonDown, boolean synthesized, boolean popupTrigger, boolean stillSincePress, PickResult pickResult)` Constructs new MouseEvent event with null source and target.
    `MouseEvent(Object source, EventTarget target, EventType<? extends MouseEvent> eventType, double x, double y, double screenX, double screenY, MouseButton button, int clickCount, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown, boolean primaryButtonDown, boolean middleButtonDown, boolean secondaryButtonDown, boolean synthesized, boolean popupTrigger, boolean stillSincePress, PickResult pickResult)` Constructs new MouseEvent event.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2019, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.