Created
April 12, 2014 13:47
-
-
Save Uradamus/10536637 to your computer and use it in GitHub Desktop.
Combination key press detection function in LOVE.
This file contains 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 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