Skip to content

Mojo input keyboarddevice keyname

mojo:mojo.input.KeyboardDevice.KeyName

Method KeyName:String( key:Key )#

Gets the name of a key.

If key is a raw key, returns the name 'printed' on the key, eg: KeyName( Key.W|Key.Raw ) will always return the name of key at the top left of the QWERTY keys.

if key is a virtual key, returns the name of the key, eg: KeyName( Key.W ) will always return "W".