local V=.2 local c=false local t=false local s=1 local function h(V,c,t)if t<c then t=c end return math.clamp(V,c,t)end local function p(V)return V==V and(V~=1/0 and V~=-1/0)end local function U(V)return p(V.x)and(p(V.y)and p(V.z))end
--[[ Gamepad Support ]]
--
local THUMBSTICK_DEADZONE = 0.2
local r3ButtonDown = false
local l3ButtonDown = false
local currentZoomSpeed = 1 -- Multiplier, so 1 == no zooming

local function clamp(value, minValue, maxValue)
	if maxValue < minValue then
		maxValue = minValue
	end
	return math.clamp(value, minValue, maxValue)
end

local function IsFinite(num)
	return num == num and num ~= 1 / 0 and num ~= -1 / 0
end

local function IsFiniteVector3(vec3)
	return IsFinite(vec3.x) and IsFinite(vec3.y) and IsFinite(vec3.z)
end
