Rumblepad geimplementeerd, actions toegevoegd en begin gemaakt met iTunes implementatie. Die geeft rare Jacob foutmeldingen over de versie.

This commit is contained in:
Bram Veenboer
2011-02-08 21:01:37 +00:00
parent e9c0216ad9
commit 0fb1a1fb71
6 changed files with 191 additions and 3 deletions

View File

@@ -1,7 +1,11 @@
package pm.device.javainput.rumblepad;
import pm.Action;
import pm.Target;
import pm.device.javainput.JavaInputDevice;
import pm.exception.DeviceException;
import pm.exception.MacroException;
import pm.macro.event.Press;
public class RumblepadDevice extends JavaInputDevice {
@@ -9,5 +13,25 @@ public class RumblepadDevice extends JavaInputDevice {
public RumblepadDevice() throws DeviceException {
super(NAME);
}
}
public void start() {
super.start();
try {
/*add(
new Press(RumblepadButton.ONE),
Action.PLAY.setTarget(Target.APPLICATION));
add(
new Press(RumblepadButton.TWO),
Action.PAUSE.setTarget(Target.APPLICATION));
add(
new Press(RumblepadButton.THREE),
Action.RESUME.setTarget(Target.APPLICATION));*/
add(
new Press(RumblepadButton.FOUR),
Action.EXIT.setTarget(Target.MAIN));
} catch (MacroException e) {
e.printStackTrace();
}
}
}