def update(self):
if held_keys['t']:
print("it works !")
< /code>
всякий раз, когда я нажимаю «t», он печатает «это работает!», И если я держу его, если оно удерживается, сообщение напечатано. Большой ! Но теперь, если я попробую с «Left Mouse Down» для моего ключа, это больше не работает!
мой код тогда будет: < /p>
def update(self):
if held_keys['left mouse down']:
print("it works !")
< /code>
Итак, проблема здесь - это аргумент «Left Mouse Down». But I'm sure it is the correct syntax :
- according to the documentation (https://www.ursinaengine.org/cheat_sheet.html#Keys)
- and according to another test I made with it, where it worked (in another situation)
Подробнее здесь: https://stackoverflow.com/questions/680 ... ith-ursina