MouseInfo provides methods for getting information about the mouse,
such as mouse pointer location and the number of mouse buttons.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | |
| public static int | Returns: number of buttons on the mouseReturns the number of buttons on the mouse. |
| public static PointerInfo | Returns: location of the mouse pointerReturns a |
| MouseInfo | back to summary |
|---|---|
| private MouseInfo() Private constructor to prevent instantiation. | |
| areScreenDevicesIndependent | back to summary |
|---|---|
| private static boolean areScreenDevicesIndependent(GraphicsDevice[] gds) | |
| getNumberOfButtons | back to summary |
|---|---|
| public static int getNumberOfButtons() throws HeadlessException Returns the number of buttons on the mouse.
On systems without a mouse, returns
| |
| getPointerInfo | back to summary |
|---|---|
| public static PointerInfo getPointerInfo() throws HeadlessException Returns a
| |