Example Of Keyboard Input / List Of Keyboard Key Names?

Hi,

Finishing up the new high score name input screen…
Can someone point to a Defold keyboard input tutorial?
Also need a list of Defold keyboard key names.
Thanks!

Jesse

Just noticed that there is a “GameInput.input_binding” screen.
Does Defold have default keyboard input key names or I must declare all of them above?
Thanks!

You want to use input text trigger type of text for typing arbitrary keys such as high score names. There is an example here https://www.defold.com/examples/input/text/

More info here https://www.defold.com/manuals/input/

2 Likes

For those who are interested, the first link had been moved here https://defold.com/examples/input/text/

1 Like

Hey @britzl!
Maybe it’s a good idea to let the links https://defold.com/examples/input/text/ and https://defold.com/examples/input/text point to the same page! (the last “/” is the only difference between the two links :face_with_monocle:)

Oh, yes, hmm, Jekyll is good, but sometimes things like this isn’t working that great. I’ll take a look. Thanks!

A new version with a fix for the trailing slash issue has been pushed and should be available in a minute or so.

Defold-input has a neat, complete input binding file in defold-input/in/bindings/all.input_binding