-- events


UserInputService.InputBegan:connect(function(inputObject, processed)
	local action	= ActionFromInputObject(inputObject)
	
	if action then
		actionBegan:Fire(action, processed)
	end
end)

UserInputService.InputEnded:connect(function(inputObject, processed)
	local action	= ActionFromInputObject(inputObject)
	
	if action then
		actionEnded:Fire(action, processed)
	end
end)
