to let the player in the ursina move, i use pyautogui to press w,s,a,d to achieve the movement.(in the ursina, w,s,a,d can make the player moves) . unluckily it doesn't work:(
My code:
def input(key):
if key=='up arrow':
pyautogui.keyDown('w')
if key=='up arrow up':
pyautogui.keyUp('w')
and i tried adding 'print(key)':
the 'w' doesn't show, which means 'w' wasn't clicked:( how to fix it??
to let the player in the ursina move, i use pyautogui to press w,s,a,d to achieve the movement.(in the ursina, w,s,a,d can make the player moves) . unluckily it doesn't work:( My code: def input(key): if key=='up arrow': pyautogui.keyDown('w') if key=='up arrow up': pyautogui.keyUp('w') and i tried adding 'print(key)': the 'w' doesn't show, which means 'w' wasn't clicked:( how to fix it??