Simpele feedback van iTunes naar Wiimote toegevoegd, daartoe kleine fouten in initialisatie van Device gerepareerd. Exceptions moeten worden nagekeken!

This commit is contained in:
2011-05-09 19:18:36 +00:00
parent a8b0a229d7
commit dab8e9494b
9 changed files with 46 additions and 9 deletions

View File

@@ -11,6 +11,7 @@ import pm.device.panel.PanelDevice;
import pm.device.wiimote.WiimoteDevice;
import pm.event.EventHandler;
import pm.event.EventSpreader;
import pm.exception.InitialiseException;
import pm.exception.device.DeviceExitException;
import pm.exception.device.DeviceInitialiseException;
@@ -28,8 +29,8 @@ public abstract class Manager extends EventHandler {
public void initialise() throws DeviceInitialiseException {
//add(new JIntellitypeDevice());
//add(new PlayerDevice());
add(new RumblepadDevice());
//add(new WiimoteDevice());
//add(new RumblepadDevice());
add(new WiimoteDevice());
//add(new GUIDevice());
//add(new TextDevice());
add(new PanelDevice());
@@ -51,7 +52,7 @@ public abstract class Manager extends EventHandler {
device.initialise();
device.start();
System.out.println("Device started: " + device);
} catch (DeviceInitialiseException e) {
} catch (InitialiseException e) {
removeList.add(device);
}
}