Reading any key in the range A to Z on the keyboard but nothing else

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Robster
:warning: Old Version Published before Godot 3 was released.

Hi all,

I want to accept full QWERTY input within the range A to Z.

I have not done any keyboard handling except for up arrow, down arrow, etc. Basic stuff. I am really hoping I don’t have to manually map every single key in the settings area so before doing that mammoth job decided to ask if anyone knows of a more efficient method?

I’ve got something like…

func _input(event):
	if event.type == InputEvent.KEY:
		print(InputEvent.KEY)

…but that only prints 1 each time I press (and release) a key.

Any suggestion taken with open arms. :slight_smile:

:bust_in_silhouette: Reply From: jospic

Take a look here, it’s an Input Manager from AngegaStudios

https://godotdevelopers.org/forum/discussion/17419/input-manager

-j

Thank you and I do appreciate the link.

I WAS going to say that I’ll bookmark that for future use indeed but what I’m trying to do in this game is to make it myself. It’s a learning experience more than anything. I’m really trying to avoid other people’s systems plugged in.

Then I had a read of his code and I’ve decided to make my own system based on his. It really is very good and to be honest, it’s teaching me what I need to learn.

Thanks so much. He does good stuff for the community (Edward).

Robster | 2016-09-24 23:43