forked from flipperdevices/flipperzero-protobuf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gui.proto
43 lines (34 loc) · 983 Bytes
/
gui.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
syntax = "proto3";
package PB_Gui;
option java_package = "com.flipperdevices.protobuf.screen";
enum InputKey {
UP = 0;
DOWN = 1;
RIGHT = 2;
LEFT = 3;
OK = 4;
BACK = 5;
};
enum InputType {
PRESS = 0; /**< Press event, emitted after debounce */
RELEASE = 1; /**< Release event, emitted after debounce */
SHORT = 2; /**< Short event, emitted after InputTypeRelease done withing INPUT_LONG_PRESS interval */
LONG = 3; /**< Long event, emmited after INPUT_LONG_PRESS interval, asynchronouse to InputTypeRelease */
REPEAT = 4; /**< Repeat event, emmited with INPUT_REPEATE_PRESS period after InputTypeLong event */
}
message ScreenFrame {
bytes data = 1;
}
message StartScreenStreamRequest {
}
message StopScreenStreamRequest {
}
message SendInputEventRequest {
InputKey key = 1;
InputType type = 2;
}
message StartVirtualDisplayRequest {
ScreenFrame first_frame = 1; // optional
}
message StopVirtualDisplayRequest {
}