2 * Sixth 3D engine. Copyright ©2012-2018, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of version 3 of the GNU Lesser General Public License
6 * or later as published by the Free Software Foundation.
10 package eu.svjatoslav.sixth.e3d.gui.humaninput;
12 import eu.svjatoslav.sixth.e3d.gui.ViewPanel;
13 import eu.svjatoslav.sixth.e3d.gui.ViewRenderListener;
15 import java.awt.event.KeyEvent;
17 public interface UserInputHandler extends ViewRenderListener {
20 * @return <code>true</code> if view update is needed.
22 boolean focusLost(ViewPanel viewPanel);
25 * @return <code>true</code> if view update is needed.
27 boolean focusReceived(ViewPanel viewPanel);
30 * @return <code>true</code> if view update is needed.
32 boolean keyPressed(KeyEvent event, ViewPanel viewPanel);
35 * @return <code>true</code> if view update is needed.
37 boolean keyReleased(KeyEvent event, ViewPanel viewPanel);