From fd566ab26af7e544ded3eafe22cbd344d2c8d020 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Mon, 28 Jan 2019 09:48:19 +0100 Subject: [PATCH] src/core: send keys input to scenes --- sonic-radiance.love/core/scenemanager.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sonic-radiance.love/core/scenemanager.lua b/sonic-radiance.love/core/scenemanager.lua index 31398c4..9f108f5 100644 --- a/sonic-radiance.love/core/scenemanager.lua +++ b/sonic-radiance.love/core/scenemanager.lua @@ -32,6 +32,8 @@ end function SceneManager:update(dt) if (self.currentScene ~= nil) then + local keys = self.controller.input.keys + self.currentScene.keys = keys self.currentScene:update(dt) end end