modules/world: improve keys sending to player object
This commit is contained in:
parent
66d98ab9ea
commit
dd1e25969e
1 changed files with 2 additions and 1 deletions
|
@ -104,7 +104,8 @@ end
|
|||
function BaseWorld:sendInputToPlayers(actor)
|
||||
for i,v in ipairs(self.players) do
|
||||
--TODO: make the player get from a selected source inputs
|
||||
v.actor:getInput(self.scene.keys)
|
||||
local keys = self.scene.sources[v.sourceid].keys
|
||||
v.actor:getInput(keys)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue