Available since LÖVE 0.9.2
This function is not supported in earlier versions.
Gets the key corresponding to the given hardware scancode.
Unlike key constants, Scancodes are keyboard layout-independent. For example the scancode "w" will be generated if the key in the same place as the "w" key on an American keyboard is pressed, no matter what the key is labelled or what the user's operating system settings are.
Scancodes are useful for creating default controls that have the same physical locations on on all systems.
key = love.keyboard.getKeyFromScancode( scancode )
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.