-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInputKey.java
47 lines (39 loc) · 929 Bytes
/
InputKey.java
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
public class InputKey {
private String key;
private String description;
private boolean isPressed;
private int id;
public InputKey(String key, String description, boolean isPressed) {
this.id = -1;
this.key = key;
this.description = description;
this.isPressed = isPressed;
}
public InputKey(String key, String description) {
this.id = -1;
this.key = key;
this.description = description;
this.isPressed = false;
}
public InputKey(int id, String key, String description) {
this.id = id;
this.key = key;
this.description = description;
this.isPressed = false;
}
public String getKey() {
return key;
}
public String getDescription() {
return description;
}
public boolean isPressed() {
return isPressed;
}
public void setPressed(boolean isPressed) {
this.isPressed = isPressed;
}
public int getId() {
return id;
}
}