ursina
ursina copied to clipboard
TypeError: unsuported operand type(s) for +: 'Keys' and 'str'
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).
can you give out the code? i'll see if i can help you