Rumblepad geimplementeerd, actions toegevoegd en begin gemaakt met iTunes implementatie. Die geeft rare Jacob foutmeldingen over de versie.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user