summaryrefslogtreecommitdiff
path: root/hid/src/proto.h
diff options
context:
space:
mode:
Diffstat (limited to 'hid/src/proto.h')
-rw-r--r--hid/src/proto.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/hid/src/proto.h b/hid/src/proto.h
index 36502d4f..617711dd 100644
--- a/hid/src/proto.h
+++ b/hid/src/proto.h
@@ -26,16 +26,18 @@
#define PROTO_MAGIC 0x33
#define PROTO_CRC_POLINOM 0xA001
-#define PROTO_RESP_OK 0x20
+// #define PROTO_RESP_OK 0x20 // Legacy
#define PROTO_RESP_NONE 0x24
#define PROTO_RESP_CRC_ERROR 0x40
#define PROTO_RESP_INVALID_ERROR 0x45
#define PROTO_RESP_TIMEOUT_ERROR 0x48
-#define PROTO_RESP_PONG_PREFIX 0x80
-#define PROTO_RESP_PONG_CAPS 0b00000001
-#define PROTO_RESP_PONG_SCROLL 0b00000010
-#define PROTO_RESP_PONG_NUM 0b00000100
+#define PROTO_RESP_PONG_PREFIX 0x80
+#define PROTO_RESP_PONG_CAPS 0b00000001
+#define PROTO_RESP_PONG_SCROLL 0b00000010
+#define PROTO_RESP_PONG_NUM 0b00000100
+#define PROTO_RESP_PONG_KEYBOARD_OFFLINE 0b00001000
+#define PROTO_RESP_PONG_MOUSE_OFFLINE 0b00010000
#define PROTO_CMD_PING 0x01
#define PROTO_CMD_REPEAT 0x02