public final class InputInfo
extends java.lang.Object
InputInfo
provides methods for getting information about the mouse
and keyboard, such as whether the control key is currently pressed or if the
mouse is currently performing a drag.
If using from outside the IDE platform this class needs to be initialized on application startup.
Constructor and Description |
---|
InputInfo() |
Modifier and Type | Method and Description |
---|---|
static void |
initialize() |
static boolean |
isAltDown() |
static boolean |
isAltGraphDown() |
static boolean |
isButton1Down() |
static boolean |
isButton2Down() |
static boolean |
isButton3Down() |
static boolean |
isControlDown() |
static boolean |
isDragging() |
static boolean |
isMetaDown() |
static boolean |
isShiftDown() |
public static void initialize()
public static final boolean isControlDown()
public static final boolean isAltDown()
public static final boolean isShiftDown()
public static final boolean isAltGraphDown()
public static final boolean isMetaDown()
public static final boolean isDragging()
public static final boolean isButton1Down()
public static final boolean isButton2Down()
public static final boolean isButton3Down()