Skip to content

Instantly share code, notes, and snippets.

@Uradamus
Created April 12, 2014 13:47
Show Gist options
  • Save Uradamus/10536637 to your computer and use it in GitHub Desktop.
Save Uradamus/10536637 to your computer and use it in GitHub Desktop.
Combination key press detection function in LOVE.
function combo (key1, key2)
if love.keyboard.isDown(key1) and love.keyboard.isDown(key2) then
return true
else
return false
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment