2 * Sixth 3D engine. Author: Svjatoslav Agejenko.
3 * This project is released under Creative Commons Zero (CC0) license.
8 package eu.svjatoslav.sixth.e3d.gui.humaninput;
10 import eu.svjatoslav.sixth.e3d.gui.ViewPanel;
11 import eu.svjatoslav.sixth.e3d.gui.ViewRenderListener;
13 import java.awt.event.KeyEvent;
15 public interface UserInputHandler extends ViewRenderListener {
18 * @return <code>true</code> if view update is needed.
20 boolean focusLost(ViewPanel viewPanel);
23 * @return <code>true</code> if view update is needed.
25 boolean focusReceived(ViewPanel viewPanel);
28 * @return <code>true</code> if view update is needed.
30 boolean keyPressed(KeyEvent event, ViewPanel viewPanel);
33 * @return <code>true</code> if view update is needed.
35 boolean keyReleased(KeyEvent event, ViewPanel viewPanel);