iPlug2 Forum

How can you detect middle click?

Is there a way to detect when the user presses down on the mouse wheel (“middle-click”)? I don’t see any option for it in the IMouseMod struct.

Thanks!

You can detect middle clicks by checking whether IMouseMod::L is false. Although you’d probably also want to confirm that the right mouse button wasn’t pressed, OnMouseDown() doesn’t get triggered on right clicks anyway - or at least this functionality didn’t exist when I last tried it for IVKnobControl.

1 Like