Just some ideas for the custom button & joystick event listener

This commit is contained in:
jancoow
2015-05-04 00:33:08 +02:00
parent 2c7c917d02
commit d8dbcc0719
7 changed files with 103 additions and 4 deletions
+28
View File
@@ -0,0 +1,28 @@
package control;
public class ButtonEvent {
private Button button;
private Long now;
public ButtonEvent(Button button, Long now){
this.button = button;
this.now = now;
}
/**
* @return the button
*/
public Button getButton() {
return button;
}
/**
* @return the time when event was triggered
*/
public Long getNow() {
return now;
}
}