local T={}local q={}function T.Get(H,T)return q[T]end function T.Init(T)for H,r in pairs(script:GetChildren())do if r:IsA("\077\111\100\117\108\101\083\099\114\105\112\116")then local H=require(r)T:WrapModule(H)q[r.Name]=H end end end return T
-- User Input
-- Crazyman32
-- January 2, 2018

--[[
	
	UserInput simply encapsulates all user input modules.
	
	
	UserInput:Get(inputModuleName)
	
	
	Example:
	
	local keyboard = userInput:Get("Keyboard")
	keyboard.KeyDown:Connect(function(key) end)
	
--]]



local UserInput = {}

local modules = {}


function UserInput:Get(moduleName)
	return modules[moduleName]
end


function UserInput:Init()
	for _,obj in pairs(script:GetChildren()) do
		if (obj:IsA("ModuleScript")) then
			local module = require(obj)
			self:WrapModule(module)
			modules[obj.Name] = module
		end
	end
end


return UserInput