-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathtouch.proto
More file actions
63 lines (52 loc) · 1.87 KB
/
touch.proto
File metadata and controls
63 lines (52 loc) · 1.87 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
syntax = "proto3";
import "google/protobuf/empty.proto";
package oak.platform;
// Configure human touch interfaces including IR and capacitive sensors
//
// 'touch_device_id' values come from serial numbers reported by the
// touch devices themselves.
service Touch {
// Lists touch interfaces that can be configured
rpc Info (google.protobuf.Empty) returns (TouchInformation) {}
// Applies configuration to a touch interface
rpc Configure (TouchConfigurationRequest) returns (TouchConfiguration) {}
}
message TouchInformation {
repeated TouchDevice touch_devices = 1;
message TouchDevice {
string touch_device_id = 1;
TouchConfiguration configuration = 2;
}
}
message TouchConfigurationRequest {
string touch_device_id = 1;
TouchConfiguration configuration = 2;
}
message TouchConfiguration {
// Four space-separated integers representing
// <min-x max-x min-y max-y>
// Use empty-string to use default calibration. Note that once
// calibration is changed it can only be reset to default by
// rebooting.
// It is recommended that you start with extreme values,
// such as "0 32768 0 32768", and then manually change values one
// axis at a time until physical touches are aligned as desired.
string calibration = 1;
// Direction the plane of touch is oriented relative to the touch
// interface's upright orientation. This is configured independently
// of any display's orientation.
// FORWARD_* means facing the user as a monitor normally does
// BACKWARD_* means turned around (the X axis is reversed) before rotating
// LEFT and RIGHT mean quarter turns relative to user's perspective
Orientation orientation = 2;
enum Orientation {
FORWARD_UPRIGHT = 0;
FORWARD_LEFT = 1;
FORWARD_RIGHT = 2;
FORWARD_INVERTED = 3;
BACKWARD_UPRIGHT = 4;
BACKWARD_LEFT = 5;
BACKWARD_RIGHT = 6;
BACKWARD_INVERTED = 7;
}
}