Files
Roblox-Elevator-Game/src/shared/Client/KeyBinds.lua
interpreterK 3a84d5b85d New game file structure
Scratch making the framework/engine open source for now until i figure out a better file structure that will work with Rojo
2023-12-19 18:03:55 -05:00

34 lines
666 B
Lua

local Binds = {}
Binds.__index = Binds
local BindsMap = {
Keys = {}
}
BindsMap.__index = BindsMap
local UIS = game:GetService("UserInputService")
function Binds.constructor() --Allow multiple bindings of the same keys, no overwrites
return setmetatable({}, BindsMap)
end
function BindsMap.new()
local InputBegan = UIS.InputBegan:Connect(function(input, gameProcessedEvent)
if not gameProcessedEvent then
end
end)
local InputEnded = UIS.InputEnded:Connect(function(input, gameProcessedEvent)
if not gameProcessedEvent then
end
end)
return setmetatable({
InputBegan = InputBegan,
InputEnded = InputEnded
}, BindsMap)
end
return Binds