Fixed Input IsKeyPressed system, F6 to pause the game while running, F6 to start/stop

This commit is contained in:
Antoine Pilote
2024-04-27 15:17:58 -04:00
parent 4e8824bc1d
commit bf8557310e
9 changed files with 40 additions and 36 deletions

View File

@@ -25,12 +25,12 @@ namespace Nuake {
bool IsKeyDown(int keyCode)
{
return Input::IsKeyDown(keyCode);
return Input::IsKeyDown((Key)keyCode);
}
bool IsKeyPressed(int keyCode)
{
return Input::IsKeyPressed(keyCode);
return Input::IsKeyPressed((Key)keyCode);
}
Coral::Array<float> GetMousePosition()