mirror of
https://github.com/TangentFoxy/baton.git
synced 2025-07-28 02:52:19 +00:00
spaces -> tabs
This commit is contained in:
@@ -163,9 +163,9 @@ function Player:_updateControls()
|
|||||||
for _, control in pairs(self._controls) do
|
for _, control in pairs(self._controls) do
|
||||||
control.rawValue = self:_getControlRawValue(control)
|
control.rawValue = self:_getControlRawValue(control)
|
||||||
control.value = control.rawValue >= self.config.deadzone and control.rawValue or 0
|
control.value = control.rawValue >= self.config.deadzone and control.rawValue or 0
|
||||||
control.downPrevious = control.down
|
control.downPrevious = control.down
|
||||||
control.down = control.value > 0
|
control.down = control.value > 0
|
||||||
control.pressed = control.down and not control.downPrevious
|
control.pressed = control.down and not control.downPrevious
|
||||||
control.released = control.downPrevious and not control.down
|
control.released = control.downPrevious and not control.down
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user