-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathMacroInterface.java
More file actions
83 lines (69 loc) · 1.67 KB
/
MacroInterface.java
File metadata and controls
83 lines (69 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
package com.mattsmeets.macrokey.model;
import com.mattsmeets.macrokey.model.command.CommandInterface;
import java.util.UUID;
public interface MacroInterface {
/**
* Get the identifier of the macro (used internally)
* <p>
* *Should* be immutable after setup.
*
* @return UUID unique macro identifier
*/
UUID getUMID();
/**
* Get the keyCode the Macro should be bound to
*
* @return int keyCode
*/
int getKeyCode();
/**
* Set the keyCode the Macro should be bound to
*
* @param keyCode the keyCode
* @return the current Macro instance
*/
Macro setKeyCode(int keyCode);
/**
* Get the actual command that will can run
*
* @return String command
*/
CommandInterface getCommand();
/**
* Set the actual command that will can run
*
* @param command the command
* @return the current Macro instance
*/
Macro setCommand(CommandInterface command);
/**
* Is the Macro active?
*
* @return boolean isActive
*/
boolean isActive();
/**
* Set the state of the Macro
*
* @param active isActive
* @return the current Macro instance
*/
Macro setActive(boolean active);
/**
* When holding button, should we repeat?
*
* @return repeat
*/
boolean willRepeat();
/**
* Set the 'repeat' flag on a macro.
*
* @param repeat willRepeat
* @return the current Macro instance
*/
Macro setRepeat(boolean repeat);
Macro setInterfaceType(int interfaceType);
int getInterfaceType();
Macro setModifier(int modifier);
int getModifier();
}