Package de.gurkenlabs.litiengine.input
Interface IKeyboard.KeyPressedListener
- All Superinterfaces:
java.util.EventListener
- Enclosing interface:
- IKeyboard
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public static interface IKeyboard.KeyPressedListener
extends java.util.EventListener
This listener interface receives pressed events for the keyboard.
- See Also:
IKeyboard.onKeyPressed(KeyPressedListener)
,IKeyboard.onKeyPressed(int, KeyPressedListener)
,KeyListener.keyPressed(KeyEvent)
Method Summary
Modifier and Type Method Description void
keyPressed(java.awt.event.KeyEvent event)
Invoked when a key has been pressed.
Method Details
keyPressed
void keyPressed(java.awt.event.KeyEvent event)Invoked when a key has been pressed. See the class description forKeyEvent
for a definition of a key pressed event.- Parameters:
event
- The key event.