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() { // 创建一个信号通道