Skip to content

Instantly share code, notes, and snippets.

@hryx
Created February 5, 2012 07:15
Show Gist options
  • Select an option

  • Save hryx/1743761 to your computer and use it in GitHub Desktop.

Select an option

Save hryx/1743761 to your computer and use it in GitHub Desktop.
Check for any alphabetical key pressed
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