Gamepad appear as symbol

Godot Version

v4.2.2

Question

so im trying to put word on button but got symbol instead, thank you in advance





found the problem;

`func get_key_name(keycode: int) → String:

if keycode >= MOUSE_BUTTON_LEFT and keycode <= MOUSE_BUTTON_MIDDLE:
	match keycode:
		MOUSE_BUTTON_LEFT: return "Left Click"
		MOUSE_BUTTON_RIGHT: return "Right Click"
		MOUSE_BUTTON_MIDDLE: return "Middle Click"
	return "Mouse Button " + str(keycode)
elif keycode >= KEY_SPACE:
	var event = InputEventKey.new()
	event.keycode = keycode
	return event.as_text()
elif keycode >= 1000:
	var gamepad_code = keycode - 1000  # Remove the offset
	return get_gamepad_button_name(gamepad_code)
else:
	return get_key_name(keycode)`