Merge pull request #1 from mutantant/MacOS_Error_Fix

Removed "lmeta" "rmeta" check for keyboard in utils which crashed MacOS
This commit is contained in:
Caldas Lopes 2019-03-17 20:34:00 +00:00 committed by GitHub
commit 5d2bbd3695
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
\.DS_Store

View File

@ -360,8 +360,7 @@ end
--]]---------------------------------------------------------
function loveframes.IsCtrlDown()
if love._os == "OS X" then
return love.keyboard.isDown("lmeta") or love.keyboard.isDown("rmeta") or
love.keyboard.isDown("lgui") or love.keyboard.isDown("rgui")
return love.keyboard.isDown("lgui") or love.keyboard.isDown("rgui")
end
return love.keyboard.isDown("lctrl") or love.keyboard.isDown("rctrl")
end