I want to make a game with Python 3.6 and I have a problem. When I try to set conrols(like WASD), the Python Shell detect that I constantly press ÿ (unicode: b'\xff'). I have not ÿ on my keyboard. I wrote:print(getch())
and print(chr(ord(getch())))
.
I have 2 questions:
- What is the solution to my problem?
- What is the best method to set controls in game made with Python?
Thank you in advance.