Browse Source

Fix initial return value of love.keyboard.isDown

Sasha Szpakowski 5 months ago
parent
commit
5365894260
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/modules/keyboard/Keyboard.cpp

+ 1 - 0
src/modules/keyboard/Keyboard.cpp

@@ -58,6 +58,7 @@ bool Keyboard::getConstant(const char *in, Key &out)
 	{
 		stringToKey[text] = codepoint;
 		out = (Key)codepoint;
+		return true;
 	}
 
 	return false;