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()