I am making a typing game in Godot v4. I used this code from youtube, but the print statement prints out the uppercase version of the key despite not having caps lock on or pressing shift. is this normal godot behavior? How do i get the lowercase version when i’m not pressing shift/dont have caps lock on?
<code>func _unhandled_input(event:InputEvent) -> void:
if event is InputEventKey and not event.is_pressed():
var typed_event = event as InputEventKey
var key_typed = PackedByteArray([typed_event.get_keycode_with_modifiers()]).get_string_from_utf8()
print(key_typed)
</code>
<code>func _unhandled_input(event:InputEvent) -> void:
if event is InputEventKey and not event.is_pressed():
var typed_event = event as InputEventKey
var key_typed = PackedByteArray([typed_event.get_keycode_with_modifiers()]).get_string_from_utf8()
print(key_typed)
</code>
func _unhandled_input(event:InputEvent) -> void:
if event is InputEventKey and not event.is_pressed():
var typed_event = event as InputEventKey
var key_typed = PackedByteArray([typed_event.get_keycode_with_modifiers()]).get_string_from_utf8()
print(key_typed)
I tried using keycode instead of get_keycode_with_modifiers() and i also tried key_label but they do the same thing. I am fairly new to godot and I’ve been trying to look for answers but have not found any.