From d7c16c80cdca4b93f3789fb0927aecb92ddd35d9 Mon Sep 17 00:00:00 2001 From: chicrobot Date: Wed, 5 Aug 2026 01:36:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=81=9C=E6=AD=A2=E6=96=87=E6=9C=AC=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E6=A8=A1=E5=BC=8F=EF=BC=8C=E9=81=BF=E5=85=8D=E6=AF=8F?= =?UTF-8?q?=E6=AC=A1=E5=90=AF=E5=8A=A8=E9=9C=80=E8=A6=81=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- start.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/start.py b/start.py index 851071c..df7b75c 100644 --- a/start.py +++ b/start.py @@ -18,6 +18,9 @@ class Game: size = (GameConfig.window_x, GameConfig.window_y) self.screen = pygame.display.set_mode(size, pygame.NOFRAME) + # 避免每次启动需要切换输入法 + pygame.key.stop_text_input() + # 设置计时器 self.clock = pygame.time.Clock()