From ca729397430f2ece112275244ba5b9603f58c9fa Mon Sep 17 00:00:00 2001 From: cuu Date: Tue, 7 Aug 2018 23:22:28 +0800 Subject: [PATCH] also add LK1 LK5 in PC object --- sys.py/UI/keys_def.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/sys.py/UI/keys_def.py b/sys.py/UI/keys_def.py index 7a52d9c..69921a3 100644 --- a/sys.py/UI/keys_def.py +++ b/sys.py/UI/keys_def.py @@ -10,12 +10,6 @@ import sys from config import CurKeySet GameShell = {} -""" -GameShell["Up"] = pygame.K_w -GameShell["Down"] = pygame.K_s -GameShell["Left"] = pygame.K_a -GameShell["Right"]= pygame.K_d -""" GameShell["Up"] = pygame.K_UP GameShell["Down"] = pygame.K_DOWN GameShell["Left"] = pygame.K_LEFT @@ -54,6 +48,9 @@ PC["Enter"] = pygame.K_RETURN PC["Space"] = pygame.K_SPACE PC["Start"] = pygame.K_s +PC["LK1"] = pygame.K_h +PC["LK5"] = pygame.K_l + if CurKeySet == "PC": CurKeys = PC else: