Implementatie JIntellitype hotkeys en commands voltooid. Mogelijk tot registreren van enkelvoudige events in plaats van macro toegevoegd.
This commit is contained in:
@@ -2,8 +2,10 @@ package pm.device;
|
||||
|
||||
import pm.Action;
|
||||
import pm.Macro;
|
||||
import pm.exception.MacroException;
|
||||
import pm.listener.ActionListener;
|
||||
import pm.listener.MacroListener;
|
||||
import pm.macro.Event;
|
||||
|
||||
public abstract class Device extends ActionListener {
|
||||
protected MacroListener macroListener;
|
||||
@@ -16,6 +18,14 @@ public abstract class Device extends ActionListener {
|
||||
macroListener.add(macro, action);
|
||||
}
|
||||
|
||||
public void add(Event event, Action action) throws MacroException {
|
||||
macroListener.add(event, action);
|
||||
}
|
||||
|
||||
public void add(Event event) {
|
||||
macroListener.add(event);
|
||||
}
|
||||
|
||||
public void start() {}
|
||||
public void exit() {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user