public interface InputService extends SciJavaService
| Modifier and Type | Method and Description |
|---|---|
default EventService |
eventService() |
Display<?> |
getDisplay()
Gets the display associated with the last observed mouse cursor.
|
default EventService |
getEventService()
Deprecated.
Use
eventService() instead. |
InputModifiers |
getModifiers() |
int |
getX()
Gets the last observed X coordinate of the mouse cursor, relative to a
specific display.
|
int |
getY()
Gets the last observed Y coordinate of the mouse cursor, relative to a
specific display.
|
boolean |
isAltDown() |
boolean |
isAltGrDown() |
boolean |
isButtonDown(int button)
Gets whether the given mouse button is currently pressed.
|
boolean |
isCtrlDown() |
boolean |
isKeyDown(KeyCode code) |
boolean |
isMetaDown() |
boolean |
isShiftDown() |
initialize, registerEventHandlersgetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersiondisposedefault EventService eventService()
InputModifiers getModifiers()
boolean isAltDown()
boolean isAltGrDown()
boolean isCtrlDown()
boolean isMetaDown()
boolean isShiftDown()
boolean isKeyDown(KeyCode code)
Display<?> getDisplay()
int getX()
getDisplay()int getY()
getDisplay()boolean isButtonDown(int button)
button - One of:
@Deprecated default EventService getEventService()
eventService() instead.Copyright © 2015–2022 SciJava. All rights reserved.