From 6dff8221d5e43e87727328fcd3260559ff13a2a3 Mon Sep 17 00:00:00 2001 From: joylink_zhaoerwei Date: Fri, 15 Mar 2024 16:40:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=97=E8=BD=A6=E6=8E=A7=E5=88=B6=E5=AE=A4?= =?UTF-8?q?=E7=9B=B8=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protos/tccGraphics.proto | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/protos/tccGraphics.proto b/protos/tccGraphics.proto index 56cf6ca..8ad7e25 100644 --- a/protos/tccGraphics.proto +++ b/protos/tccGraphics.proto @@ -8,19 +8,15 @@ message TccGraphicStorage { graphicData.Canvas canvas = 1; repeated TccButton tccButtons = 2; repeated TccText tccTexts = 3; -} - -enum TccElementColor { - green = 0; - red = 1; + repeated TccKey tccKeys = 4; + repeated TccHandle tccHandles = 5; } /** TCC按钮 */ message TccButton { graphicData.CommonInfo common = 1; string code = 2; - TccElementColor buttonColor = 3; - bool isSelfReset = 4; + bool isSelfReset = 3; } /** TCC文字 */ @@ -31,3 +27,21 @@ message TccText { string color = 4; int32 fontSize = 5; } + +/** TCC钥匙 */ +message TccKey { + enum TccKeyType { + driverControllerActivationClint = 0; //司控器激活端 + frontAndRearDirectionalControl = 1;//前后方向控制 + } + + graphicData.CommonInfo common = 1; + string code = 2; + TccKeyType type = 3; +} + +/** TCC手柄 */ +message TccHandle { + graphicData.CommonInfo common = 1; + string code = 2; +}