添加鼠标按键检测

This commit is contained in:
chicrobot committed 2026-07-26 04:08:11 +08:00
1 parent 2d0cea6ec3
commit 9b03f6906e
1 file changed
+2 -2
+2 -2
View File
@@ -40,8 +40,8 @@ class MainMenuScene(BaseScene):
def handle_event(self, event): def handle_event(self, event):
if event.type == pygame.KEYDOWN: if event.type == pygame.KEYDOWN:
self.button_status = True self.button_status = True
if event.type == pygame.KEYUP: if event.type == pygame.MOUSEBUTTONDOWN:
self.button_status = False self.button_status = True
def __show(self, info, dest=(0, 0)): def __show(self, info, dest=(0, 0)):
if not self.debug_status: if not self.debug_status: