mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-19 23:33:33 +08:00
Opt: Show minitouch init messages
This commit is contained in:
@@ -205,19 +205,22 @@ class MiniTouch(Connection):
|
|||||||
|
|
||||||
# v <version>
|
# v <version>
|
||||||
# protocol version, usually it is 1. needn't use this
|
# protocol version, usually it is 1. needn't use this
|
||||||
socket_out.readline()
|
out = socket_out.readline().replace("\n", "").replace("\r", "")
|
||||||
|
logger.info(out)
|
||||||
|
|
||||||
# ^ <max-contacts> <max-x> <max-y> <max-pressure>
|
# ^ <max-contacts> <max-x> <max-y> <max-pressure>
|
||||||
_, max_contacts, max_x, max_y, max_pressure, *_ = (
|
out = socket_out.readline().replace("\n", "").replace("\r", "")
|
||||||
socket_out.readline().replace("\n", "").replace("\r", "").split(" ")
|
logger.info(out)
|
||||||
)
|
_, max_contacts, max_x, max_y, max_pressure, *_ = out.split(" ")
|
||||||
# self.max_contacts = max_contacts
|
# self.max_contacts = max_contacts
|
||||||
self.max_x = int(max_x)
|
self.max_x = int(max_x)
|
||||||
self.max_y = int(max_y)
|
self.max_y = int(max_y)
|
||||||
# self.max_pressure = max_pressure
|
# self.max_pressure = max_pressure
|
||||||
|
|
||||||
# $ <pid>
|
# $ <pid>
|
||||||
_, pid = socket_out.readline().replace("\n", "").replace("\r", "").split(" ")
|
out = socket_out.readline().replace("\n", "").replace("\r", "")
|
||||||
|
logger.info(out)
|
||||||
|
_, pid = out.split(" ")
|
||||||
self.pid = pid
|
self.pid = pid
|
||||||
|
|
||||||
logger.info(
|
logger.info(
|
||||||
|
|||||||
Reference in New Issue
Block a user