Skip to content

Commit c2b9c49

Browse files
committed
Add key tables for proper key mapping
1 parent a432186 commit c2b9c49

6 files changed

Lines changed: 735 additions & 16 deletions

File tree

proto/ipc.proto

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,32 @@ message ButtonRelease {
4949
double y = 3;
5050
}
5151

52+
enum Location {
53+
STANDARD = 0;
54+
LEFT = 1;
55+
RIGHT = 2;
56+
NUMPAD = 3;
57+
}
58+
59+
enum KeyType {
60+
CHARACTER = 0;
61+
NAMED = 1;
62+
}
63+
5264
message KeyPress {
5365
string key = 1;
66+
KeyType key_type = 2;
67+
Location location = 3;
68+
uint32 key_code = 4;
69+
uint32 modifiers = 5;
5470
}
5571

5672
message KeyRelease {
5773
string key = 1;
74+
KeyType key_type = 2;
75+
Location location = 3;
76+
uint32 key_code = 4;
77+
uint32 modifiers = 5;
5878
}
5979

6080
message Scroll {

0 commit comments

Comments
 (0)