Package io.guise.framework.input
Interface GestureInput
- All Superinterfaces:
Input
- All Known Subinterfaces:
KeyboardInput
,MouseInput
- All Known Implementing Classes:
AbstractGestureInput
,AbstractMouseInput
,KeystrokeInput
,MouseClickInput
An encapsulation of user input from a gesture.
- Author:
- Garret Wilson
-
Method Summary
Modifier and TypeMethodDescriptiongetKeys()
boolean
Determines whether an Alt key was pressed when this input occurred.boolean
Determines whether a Control key was pressed when this input occurred.boolean
Determines whether a Shift key was pressed when this input occurred.
-
Method Details
-
getKeys
- Returns:
- The keys that were pressed when this input occurred.
-
hasAltKey
boolean hasAltKey()Determines whether an Alt key was pressed when this input occurred.- Returns:
true
if one of the Alt keys were pressed when this input occurred.- See Also:
-
hasControlKey
boolean hasControlKey()Determines whether a Control key was pressed when this input occurred.- Returns:
true
if one of the Control keys were pressed when this input occurred.- See Also:
-
hasShiftKey
boolean hasShiftKey()Determines whether a Shift key was pressed when this input occurred.- Returns:
true
if one of the Shift keys were pressed when this input occurred.- See Also:
-