-
Notifications
You must be signed in to change notification settings - Fork 23
/
gui.proto
52 lines (42 loc) · 1.3 KB
/
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
44
45
46
47
48
49
50
51
52
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 de-bounce */
RELEASE = 1; /**< Release event, emitted after de-bounce */
SHORT = 2; /**< Short event, emitted after InputTypeRelease done withing INPUT_LONG_PRESS interval */
LONG = 3; /**< Long event, emitted after INPUT_LONG_PRESS interval, asynchronous to InputTypeRelease */
REPEAT = 4; /**< Repeat event, emitted with INPUT_REPEATE_PRESS period after InputTypeLong event */
}
enum ScreenOrientation {
HORIZONTAL = 0; /**< Horizontal */
HORIZONTAL_FLIP = 1; /**< Horizontal flipped (180) */
VERTICAL = 2; /**< Vertical (90) */
VERTICAL_FLIP = 3; /**< Vertical flipped (270) */
}
message ScreenFrame {
bytes data = 1;
ScreenOrientation orientation = 2;
}
message StartScreenStreamRequest {
}
message StopScreenStreamRequest {
}
message SendInputEventRequest {
InputKey key = 1;
InputType type = 2;
}
message StartVirtualDisplayRequest {
ScreenFrame first_frame = 1; /**< Optional: screen frame to show */
bool send_input = 2; /**< Optional: send flipper input */
}
message StopVirtualDisplayRequest {
}