GameSprint1Done, little bug. When aiming right down not possible to hit with button 1 and 3 :S

This commit is contained in:
Remco
2015-05-26 22:14:44 +02:00
parent 2af16890d4
commit 3bc4f55f5a
18 changed files with 515 additions and 84 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,