141142143144145146147148149150
} } private void checkKeyboard(){ checkConfig(); Keyboard keyboard = this.config.getKeyboard(); if(keyboard == null){ throw new IllegalStateException("Fatal error: Keyboard within Configuration is a nullpointer!"); } }
155156157158159160161162163164
47484950515253545556
this.canvasHeight = canvasHeight; this.windowResizable = true; this.scaleCanvasOnResize = true; this.keyboard = new Keyboard(); this.mouse = new Mouse(); this.observerList = new LinkedList<ConfigurationObserver>(); }