ursina icon indicating copy to clipboard operation
ursina copied to clipboard

TypeError: unsuported operand type(s) for +: 'Keys' and 'str'

Open Seb0PL opened this issue 1 year ago • 1 comments

File "main.py", line 92, in <module>
  rebind(Keys.scroll_down, 's')
File "/ursina/input_handler.py", line 117, in rebind
  bind(to_key, from_key)
File "/ursina/input_handler.py", line 102, in bind
  rebinds[original_key + ' hold'] = alternative_key + ' hold'
TypeError: unsuported operand type(s) for +: 'Keys' and 'str'

It seems this does not work as expected 🤨

The walk around is for this is to use the string constant (as it is defined in the input_handler.py file).

Seb0PL avatar Jun 19 '23 22:06 Seb0PL

can you give out the code? i'll see if i can help you

IndividualCoder avatar Jul 30 '23 11:07 IndividualCoder