scenes/battlesystem: get inputs from right source

This commit is contained in:
Kazhnuz 2019-03-23 11:45:20 +01:00
parent f486d73409
commit 173efc2bab
3 changed files with 3 additions and 3 deletions

View file

@ -101,7 +101,7 @@ function Cursor:update(dt)
if (self.frame >= 4) then
self.frame = 1
end
local keys = game.input.keys
local keys = self.controller.keys
if (keys["up"].isPressed) then
dy = math.max(self.y - 1, 1)

View file

@ -50,7 +50,7 @@ end
function MenuSystem:update(dt)
if (self.isActive) then
local keys = game.input.keys
local keys = self.controller.keys
if self.cursor < self.view then
self.view = self.cursor

View file

@ -74,7 +74,7 @@ function Character:update(dt)
end
elseif (self.currentAction == "selectAttack") then
if (game.input.keys["B"].isPressed) then
if (self.controller.keys["B"].isPressed) then
--self.currentAction = "selectDirection"
--self.controller.cursor:set(self.x, self.y)
end