MouseWheelDown?

Is there a way to detect when the mouse wheel has been pressed down?

I can only find WheelForward/Backward and the scroll direction, but obviously none of that is what I’m looking for.

If I just print for input, it comes up as Enum.KeyCode.Unknown.

Thanks

2 Likes

Unfortunately, no. There’s no enumeration of that.

2 Likes

you can use UserInputType for the MouseWheel

1 Like

Try this, I assume u wanted middle mouse press, which does that exactly.

local UIS = game:GetService("UserInputService")

UIS.InputBegan:Connect(function(Input, Idle)
	if not Idle then
		if Input.UserInputType == Enum.UserInputType.MouseButton3 then
			print("Pressed")
		end
	end
end)
7 Likes

Thank you. I wonder why they don’t have all of that under Mouse?

I don’t know what you mean by that but, KeyCode is for Keyboard and UserInputType is for mouse(I think).

1 Like

I meant localPlayer:GetMouse().Button3Down or something. But UserInputType is something I’ll have to look more into. Thanks again

1 Like