feat: 增加分辨率修改

This commit is contained in:
2026-07-21 11:05:40 +08:00
parent 9e5ac91e46
commit 341dce249f
25 changed files with 646 additions and 6 deletions

View File

@@ -25,6 +25,10 @@ class Action extends $pb.ProtobufEnum {
Action._(4, _omitEnumNames ? '' : 'LONG_PRESS');
static const Action MOTION_EVENT =
Action._(5, _omitEnumNames ? '' : 'MOTION_EVENT');
static const Action SET_RESOLUTION =
Action._(6, _omitEnumNames ? '' : 'SET_RESOLUTION');
static const Action REPORT_RESOLUTION =
Action._(7, _omitEnumNames ? '' : 'REPORT_RESOLUTION');
static const $core.List<Action> values = <Action>[
ACTION_UNKNOWN,
@@ -33,10 +37,12 @@ class Action extends $pb.ProtobufEnum {
KEY,
LONG_PRESS,
MOTION_EVENT,
SET_RESOLUTION,
REPORT_RESOLUTION,
];
static final $core.List<Action?> _byValue =
$pb.ProtobufEnum.$_initByValueList(values, 5);
$pb.ProtobufEnum.$_initByValueList(values, 7);
static Action? valueOf($core.int value) =>
value < 0 || value >= _byValue.length ? null : _byValue[value];