From cf64040dcef7ab3b5af4adaee578207926178dcf Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Mon, 4 Feb 2019 09:38:16 +0100 Subject: [PATCH] scene/boost: use the included input manager --- .../scenes/subgame/sonic-boost/controller/characters.lua | 2 +- sonic-boost.love/scenes/subgame/sonic-boost/init.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sonic-boost.love/scenes/subgame/sonic-boost/controller/characters.lua b/sonic-boost.love/scenes/subgame/sonic-boost/controller/characters.lua index be1fd36..38b532c 100644 --- a/sonic-boost.love/scenes/subgame/sonic-boost/controller/characters.lua +++ b/sonic-boost.love/scenes/subgame/sonic-boost/controller/characters.lua @@ -100,7 +100,7 @@ function Player:new(manager, playerid, character, rail) end function Player:getKeys() - return core.input.keys + return self.controller.keys end function Player:wrapActor() diff --git a/sonic-boost.love/scenes/subgame/sonic-boost/init.lua b/sonic-boost.love/scenes/subgame/sonic-boost/init.lua index 4a8bae2..ffeb20f 100644 --- a/sonic-boost.love/scenes/subgame/sonic-boost/init.lua +++ b/sonic-boost.love/scenes/subgame/sonic-boost/init.lua @@ -110,7 +110,7 @@ function BoostLevel:update(dt) --self.pausemenu:update(dt) end - if core.input.keys["start"].isPressed then + if self.keys["start"].isPressed then self.pause = (self.pause == false) end end