Implementeren van macro's begonnen.
This commit is contained in:
@@ -5,9 +5,14 @@ import java.util.Queue;
|
||||
import pm.action.Action;
|
||||
import pm.event.Target;
|
||||
|
||||
|
||||
public abstract class Device {
|
||||
protected static Queue<Action> actionQueue;
|
||||
protected MacroListener macroListener;
|
||||
|
||||
public Device() {
|
||||
macroListener = new MacroListener();
|
||||
macroListener.start();
|
||||
}
|
||||
|
||||
public void addAction(Action action, Target target) {
|
||||
action.setTarget(target);
|
||||
@@ -17,7 +22,7 @@ public abstract class Device {
|
||||
public static void initialise(Queue<Action> actionQueue) {
|
||||
Device.actionQueue = actionQueue;
|
||||
}
|
||||
|
||||
public abstract void start();
|
||||
public abstract void exit();
|
||||
|
||||
public void start() {}
|
||||
public void exit() {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user