From 10425447c788527e26f13b18d69e0e0a52183421 Mon Sep 17 00:00:00 2001 From: tignioj <859897994@qq.com> Date: Mon, 9 Dec 2024 11:13:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=94=AE=E7=9B=98=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E6=8C=89=E4=B8=8B=E5=B8=B8=E8=A7=84=E6=8C=89=E9=94=AE?= =?UTF-8?q?=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fightmapper/BaseFightMapper.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fightmapper/BaseFightMapper.py b/fightmapper/BaseFightMapper.py index 513f890..7489558 100644 --- a/fightmapper/BaseFightMapper.py +++ b/fightmapper/BaseFightMapper.py @@ -163,6 +163,7 @@ def keydown(self, key): """ key = str(key).lower() if hasattr(self.Key, key): self.kb_press(getattr(self.Key,key)) + else: self.kb_press(key) def keyup(self, key): """ 抬起按键 @@ -171,6 +172,7 @@ def keyup(self, key): """ key = str(key).lower() if hasattr(self.Key, key): self.kb_release(getattr(self.Key,key)) + else: self.kb_release(key) def keypress(self, key): """ 按下后抬起 @@ -179,6 +181,7 @@ def keypress(self, key): """ key = str(key).lower() if hasattr(self.Key, key): self.kb_press_and_release(getattr(self.Key,key)) + else: self.kb_press_and_release(key) def mousedown(self, button=None): """