make VK_SPACE an accepted select key

This commit is contained in:
ramapcsx2 committed 2014-11-29 14:07:40 +01:00
1 parent 9a3ac5c9af
commit a99bbcc274
5 files changed
+12 -7

No files matched your search

@@ -70,7 +70,7 @@ public class ShopScreen extends Screen {
this.player.setPosition(50, this.player.getY());
this.player.setPosition(this.player.getX(), 159+(this.menuPoint*100));
}
}else if(Keyboard.isKeyDown(KeyEvent.VK_ENTER) && !this.keyPressed && this.animationStatus == 0) {
}else if ( (Keyboard.isKeyDown(KeyEvent.VK_ENTER) || Keyboard.isKeyDown(KeyEvent.VK_SPACE)) && !this.keyPressed && this.animationStatus == 0) {
this.keyPressed = true;
///////////////////////////////////////////////////////////////
switch (this.menuPoint) {