Changed license to Creative Commons Zero (CC0).
[sixth-3d.git] / src / main / java / eu / svjatoslav / sixth / e3d / gui / humaninput / UserInputHandler.java
1 /*
2  * Sixth 3D engine. Author: Svjatoslav Agejenko. 
3  * This project is released under Creative Commons Zero (CC0) license.
4  *
5 *
6  */
7
8 package eu.svjatoslav.sixth.e3d.gui.humaninput;
9
10 import eu.svjatoslav.sixth.e3d.gui.ViewPanel;
11 import eu.svjatoslav.sixth.e3d.gui.ViewRenderListener;
12
13 import java.awt.event.KeyEvent;
14
15 public interface UserInputHandler extends ViewRenderListener {
16
17     /**
18      * @return <code>true</code> if view update is needed.
19      */
20     boolean focusLost(ViewPanel viewPanel);
21
22     /**
23      * @return <code>true</code> if view update is needed.
24      */
25     boolean focusReceived(ViewPanel viewPanel);
26
27     /**
28      * @return <code>true</code> if view update is needed.
29      */
30     boolean keyPressed(KeyEvent event, ViewPanel viewPanel);
31
32     /**
33      * @return <code>true</code> if view update is needed.
34      */
35     boolean keyReleased(KeyEvent event, ViewPanel viewPanel);
36
37 }