From 254af4e5fbb2a5c8e63506c314f7577d7eb5bc78 Mon Sep 17 00:00:00 2001 From: by <123456@qq.com> Date: Sat, 21 Sep 2024 10:37:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A8=83=E5=A8=83=E6=9C=BA=E5=B1=8F=E8=94=BD?= =?UTF-8?q?=E6=97=A0=E7=94=A8=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- machine/machinedoll/machinemgr.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/machine/machinedoll/machinemgr.go b/machine/machinedoll/machinemgr.go index 61f7c51..bb41785 100644 --- a/machine/machinedoll/machinemgr.go +++ b/machine/machinedoll/machinemgr.go @@ -7,7 +7,6 @@ import ( "os" "os/signal" "path/filepath" - "syscall" "time" "mongo.games.com/goserver/core/logger" @@ -165,7 +164,7 @@ func init() { module.RegisteModule(MachineMgr, time.Second, 0) } -func listenKeyboardEvents(conn net.Conn) { +/*func listenKeyboardEvents(conn net.Conn) { for { // 读取键盘事件 key := readKeyboardEvent() @@ -242,9 +241,9 @@ func listenKeyboardEvents(conn net.Conn) { queryBaseParam(conn) } } -} +}*/ -func readKeyboardEvent() string { +/*func readKeyboardEvent() string { var b [1]byte var done uint32 err := syscall.ReadFile(syscall.Stdin, b[:], &done, nil) @@ -253,7 +252,7 @@ func readKeyboardEvent() string { } return string(b[:]) -} +}*/ func waitForUserExit() { // 创建一个信号通道