feat: consolidate legacy parity migration baseline
This commit is contained in:
@@ -22,7 +22,8 @@ public sealed record LegacyCutPointerDownIntent(
|
||||
bool Shift,
|
||||
int X,
|
||||
int Y,
|
||||
long TimestampMilliseconds) : LegacyUiIntent;
|
||||
long TimestampMilliseconds,
|
||||
bool AllowAppend) : LegacyUiIntent;
|
||||
|
||||
public sealed record LegacyCutKeyDownIntent(
|
||||
LegacyCutKeyboardKey Key,
|
||||
@@ -1221,7 +1222,8 @@ public static class LegacyBridgeProtocol
|
||||
"shift",
|
||||
"x",
|
||||
"y",
|
||||
"timestampMilliseconds") ||
|
||||
"timestampMilliseconds",
|
||||
"allowAppend") ||
|
||||
!TryInt32(
|
||||
payload,
|
||||
"physicalIndex",
|
||||
@@ -1232,7 +1234,8 @@ public static class LegacyBridgeProtocol
|
||||
!TryBoolean(payload, "shift", out var shift) ||
|
||||
!TryInt32(payload, "x", 0, 16_384, out var x) ||
|
||||
!TryInt32(payload, "y", 0, 16_384, out var y) ||
|
||||
!TryInt64(payload, "timestampMilliseconds", 0, long.MaxValue, out var timestamp))
|
||||
!TryInt64(payload, "timestampMilliseconds", 0, long.MaxValue, out var timestamp) ||
|
||||
!TryBoolean(payload, "allowAppend", out var allowAppend))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
@@ -1243,7 +1246,8 @@ public static class LegacyBridgeProtocol
|
||||
shift,
|
||||
x,
|
||||
y,
|
||||
timestamp);
|
||||
timestamp,
|
||||
allowAppend);
|
||||
}
|
||||
|
||||
private static LegacyUiIntent? ParseDrop(JsonElement payload) =>
|
||||
|
||||
Reference in New Issue
Block a user