Example Of Keyboard Input / List Of Keyboard Key Names?

#1

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

0 Likes

#2

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!

0 Likes

#3

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

#4

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

1 Like

#5

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:)

0 Likes

#6

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

0 Likes

#7

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

0 Likes

#8

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

0 Likes