First bug free game?

This commit is contained in:
Remco
2015-05-28 09:30:17 +02:00
parent 2af16890d4
commit dc8f3c92e4
21 changed files with 575 additions and 167 deletions
+12 -2
View File
@@ -50,7 +50,12 @@ public class JoystickHandler implements KeyListener{
public void handleGpioPinDigitalStateChangeEvent(GpioPinDigitalStateChangeEvent e) {
if(e.getState() == PinState.HIGH){
keyReleased(new KeyEvent(
new java.awt.Component(){},
new java.awt.Component(){
/**
*
*/
private static final long serialVersionUID = 1L;},
KeyEvent.KEY_RELEASED,
System.nanoTime(),
0,
@@ -60,7 +65,12 @@ public class JoystickHandler implements KeyListener{
System.out.println(e.getPin().getName() + " Released");
}else{
keyPressed(new KeyEvent(
new java.awt.Component(){},
new java.awt.Component(){
/**
*
*/
private static final long serialVersionUID = 1L;},
KeyEvent.KEY_PRESSED,
System.nanoTime(),
0,