From 58b61b6f71398667473eb6765baefc133a4835bf Mon Sep 17 00:00:00 2001 From: Kristopher Neidecker Date: Sun, 17 Mar 2019 13:05:58 -0400 Subject: [PATCH] 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. --- .gitignore | 2 ++ loveframes/libraries/utils.lua | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0485ba8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ + +\.DS_Store diff --git a/loveframes/libraries/utils.lua b/loveframes/libraries/utils.lua index 83dc3dc..b800d07 100644 --- a/loveframes/libraries/utils.lua +++ b/loveframes/libraries/utils.lua @@ -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