Input system's seat link is now being updated on change
This commit is contained in:
@@ -104,13 +104,18 @@ function Input:initialize(options)
|
||||
|
||||
self:_setupAxles(axles)
|
||||
|
||||
self.seat = wire.ports.Seat
|
||||
self:updateSeat()
|
||||
|
||||
self.driver = self:getDriver()
|
||||
|
||||
-- in case chip was reset
|
||||
self:_syncDriver(self.driver)
|
||||
end
|
||||
|
||||
function Input:updateSeat()
|
||||
self.seat = wire.ports.Seat or NULL_ENTITY
|
||||
end
|
||||
|
||||
function Input:getDriver()
|
||||
if self.seat == nil or self.seat:isValid() == false then
|
||||
return NULL_ENTITY
|
||||
|
||||
Reference in New Issue
Block a user