Begonnen met implementatie wiimote. Nu even de wiiuse dll op de goede plaats zetten.

This commit is contained in:
2011-02-08 18:45:39 +00:00
parent d31eafd99e
commit 7c51fbc05f
13 changed files with 136 additions and 34 deletions

View File

@@ -0,0 +1,36 @@
package pm.device.wiimote;
import pm.Action;
import pm.Target;
import pm.device.Device;
import pm.exception.DeviceException;
import pm.exception.MacroException;
import pm.macro.event.Press;
import wiiusej.Wiimote;
public class WiimoteDevice extends Device {
protected static final int CONNECT_MAX = 10;
protected static WiimoteService wiimoteService;
protected Wiimote wiimote;
{
WiimoteDevice.wiimoteService = new WiimoteService();
}
public WiimoteDevice() throws DeviceException {
wiimote = wiimoteService.getDevice(this);
}
public void start() {
super.start();
try {
add(
new Press(WiimoteButton.A),
Action.TEST.setTarget(Target.APPLICATION));
} catch (MacroException e) {
e.printStackTrace();
}
}
}