Finished manual gearbox
This commit is contained in:
@@ -27,8 +27,8 @@ function Input:noKeysHolding(axle)
|
||||
end
|
||||
|
||||
function Input:getAxleValue(axle)
|
||||
local positiveValue = axle.Positive ~= nil and input.isKeyDown(axle.Positive)
|
||||
local negativeValue = axle.Negative ~= nil and input.isKeyDown(axle.Negative)
|
||||
local positiveValue = axle.Positive ~= nil and (input.isKeyDown(axle.Positive) or input.isMouseDown(axle.Positive))
|
||||
local negativeValue = axle.Negative ~= nil and (input.isKeyDown(axle.Negative) or input.isMouseDown(axle.Negative))
|
||||
|
||||
return (positiveValue and 1 or 0) - (negativeValue and 1 or 0) -- (input.isKeyDown(axle.Positive) and 1 or 0) - (input.isKeyDown(axle.Negative) and 1 or 0)
|
||||
end
|
||||
|
||||
@@ -9,5 +9,16 @@ Axles = {
|
||||
Positive = KEY.W,
|
||||
Gravity = 1,
|
||||
Sensitivity = 1
|
||||
}
|
||||
},
|
||||
Clutch = {
|
||||
Positive = KEY.SHIFT,
|
||||
Gravity = 0.15,
|
||||
Sensitivity = 0.25
|
||||
},
|
||||
Shifter = {
|
||||
Positive = MOUSE.LEFT,
|
||||
Negative = MOUSE.RIGHT,
|
||||
Gravity = 1,
|
||||
Sensitivity = 1
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user