Omzetten van javainput events naar buttons afgemaakt. Begonnen met ondersteuning voor macro's implementeren.
This commit is contained in:
26
java/src/pm/device/wiimote/WiimoteButton.java
Normal file
26
java/src/pm/device/wiimote/WiimoteButton.java
Normal file
@@ -0,0 +1,26 @@
|
||||
package pm.device.wiimote;
|
||||
|
||||
public enum WiimoteButton {
|
||||
TWO (0x0001),
|
||||
ONE (0x0002),
|
||||
B (0x0004),
|
||||
A (0x0008),
|
||||
MINUS (0x0010),
|
||||
HOME (0x0080),
|
||||
LEFT (0x0100),
|
||||
RIGHT (0x0200),
|
||||
DOWN (0x0400),
|
||||
UP (0x0800),
|
||||
PLUS (0x1000),
|
||||
ALL (0x1F9F);
|
||||
|
||||
protected int code;
|
||||
|
||||
private WiimoteButton(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user