mirror of
https://github.com/linux-man/LoveFrames.git
synced 2024-11-18 16:04:22 +00:00
Removed "lmeta" "rmeta" check for keyboard in utils which crashed MacOS
There is no "lmeta" and "rmeta" constants I can find in Love2D (https://love2d.org/wiki/KeyConstant) and the check for those keys caused the gui to crash on MacOS. Simply checking for lgui and rgui is enough for MacOS Command key.
This commit is contained in:
parent
358cd66aa7
commit
58b61b6f71
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
|
||||||
|
\.DS_Store
|
@ -360,8 +360,7 @@ end
|
|||||||
--]]---------------------------------------------------------
|
--]]---------------------------------------------------------
|
||||||
function loveframes.IsCtrlDown()
|
function loveframes.IsCtrlDown()
|
||||||
if love._os == "OS X" then
|
if love._os == "OS X" then
|
||||||
return love.keyboard.isDown("lmeta") or love.keyboard.isDown("rmeta") or
|
return love.keyboard.isDown("lgui") or love.keyboard.isDown("rgui")
|
||||||
love.keyboard.isDown("lgui") or love.keyboard.isDown("rgui")
|
|
||||||
end
|
end
|
||||||
return love.keyboard.isDown("lctrl") or love.keyboard.isDown("rctrl")
|
return love.keyboard.isDown("lctrl") or love.keyboard.isDown("rctrl")
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user