src/core: send keys input to scenes
This commit is contained in:
parent
706565eb5d
commit
fd566ab26a
1 changed files with 2 additions and 0 deletions
|
@ -32,6 +32,8 @@ end
|
||||||
|
|
||||||
function SceneManager:update(dt)
|
function SceneManager:update(dt)
|
||||||
if (self.currentScene ~= nil) then
|
if (self.currentScene ~= nil) then
|
||||||
|
local keys = self.controller.input.keys
|
||||||
|
self.currentScene.keys = keys
|
||||||
self.currentScene:update(dt)
|
self.currentScene:update(dt)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue