function Gamepad.IsDown(c,U)return down[U]==true end function Gamepad.GetInput(c,U)return state[U]end function Gamepad.GetPosition(c,U)local B=c:GetInput(U)if B then return B.Position end return ZERO_VECTOR end

function Gamepad:IsDown(keyCode)
	return down[keyCode] == true
end -- Gamepad:IsDown()

function Gamepad:GetInput(keyCode)
	return state[keyCode]
end -- Gamepad:GetInput()

function Gamepad:GetPosition(keyCode)
	local input = self:GetInput(keyCode)
	if input then
		return input.Position
	end
	return ZERO_VECTOR
end -- Gamepad:GetPosition()