Restore free-play cancellation prompt and map emulator touch coordinates

This commit is contained in:
NINI
2026-10-05 05:28:49 +09:00
parent e5f19d6fef
commit e924e697a2
5 changed files with 7 additions and 9 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ function Varint([int]$Value) {
$message=[Collections.Generic.List[byte]]::new()
for ($offset=0; $offset -lt $Contacts.Count; $offset+=4) {
# AVD touch injection uses portrait physical coordinates even when the app is landscape-left.
$fields=@(1080-$Contacts[$offset+1],$Contacts[$offset],$Contacts[$offset+2],$Contacts[$offset+3])
$fields=@((1080-$Contacts[$offset+1]),$Contacts[$offset],$Contacts[$offset+2],$Contacts[$offset+3])
$touch=[Collections.Generic.List[byte]]::new()
for ($field=0; $field -lt 4; $field++) { $touch.Add([byte](8*($field+1))); $touch.AddRange([byte[]](Varint $fields[$field])) }
$message.Add(10); $message.AddRange([byte[]](Varint $touch.Count)); $message.AddRange($touch.ToArray())