-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbehaviors.proto
60 lines (49 loc) · 1.34 KB
/
behaviors.proto
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
syntax = "proto3";
package zmk.behaviors;
message Request {
oneof request_type {
bool list_all_behaviors = 1;
GetBehaviorDetailsRequest get_behavior_details = 2;
}
}
message GetBehaviorDetailsRequest {
uint32 behavior_id = 1;
}
message Response {
oneof response_type {
ListAllBehaviorsResponse list_all_behaviors = 1;
GetBehaviorDetailsResponse get_behavior_details = 2;
}
}
message ListAllBehaviorsResponse {
repeated uint32 behaviors = 1;
}
message GetBehaviorDetailsResponse {
uint32 id = 1;
string display_name = 2;
repeated BehaviorBindingParametersSet metadata = 3;
}
message BehaviorBindingParametersSet {
repeated BehaviorParameterValueDescription param1 = 1;
repeated BehaviorParameterValueDescription param2 = 2;
}
message BehaviorParameterValueDescriptionRange {
int32 min = 1;
int32 max = 2;
}
message BehaviorParameterNil {}
message BehaviorParameterLayerId {}
message BehaviorParameterHidUsage {
uint32 keyboard_max = 1;
uint32 consumer_max = 2;
}
message BehaviorParameterValueDescription {
string name = 1;
oneof value_type {
BehaviorParameterNil nil = 2;
uint32 constant = 3;
BehaviorParameterValueDescriptionRange range = 4;
BehaviorParameterHidUsage hid_usage = 5;
BehaviorParameterLayerId layer_id = 6;
}
}