added registerListeners() method to PGL

This commit is contained in:
codeanticode
2013-09-13 19:04:55 -04:00
parent 51947ae116
commit ea82da68de
3 changed files with 38 additions and 23 deletions

View File

@@ -206,12 +206,7 @@ public class PLWJGL extends PGL {
glContext = Display.getDrawable().hashCode();
keyPoller = new KeyPoller(pg.parent);
keyPoller.start();
mousePoller = new MousePoller(pg.parent);
mousePoller.start();
registerListeners();
fboLayerCreated = false;
fboLayerInUse = false;
@@ -219,6 +214,15 @@ public class PLWJGL extends PGL {
setFps = false;
}
protected void registerListeners() {
keyPoller = new KeyPoller(pg.parent);
keyPoller.start();
mousePoller = new MousePoller(pg.parent);
mousePoller.start();
}
///////////////////////////////////////////////////////////