Created
February 5, 2012 07:15
-
-
Save hryx/1743761 to your computer and use it in GitHub Desktop.
Check for any alphabetical key pressed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function love.keypressed(k) | |
| if string.match(k, '^[a-z]$') then | |
| print('yes') -- or do something else | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment