32 lines
565 B
Plaintext

-- @name Input System
-- @author DarkSupah
-- @shared
-- @include ./cl_input.txt
-- @include ./sv_input.txt
-- @include ./configs/sample.txt
require('./configs/sample.txt')
local options = {
Axles = Axles
}
if SERVER then
require('./sv_input.txt')
else
require('./cl_input.txt')
end
local input = Input:new(options)
hook.add('tick', 'InputUpdate', function()
input:update()
end)
if SERVER then
hook.add('input', 'wire_input_update', function(key, value)
if key == 'Seat' then
input:updateSeat()
end
end)
end