# BugReport: MouseMovement in VST3 in Plugin Host

**URL:** <https://forum.juce.com/t/bugreport-mousemovement-in-vst3-in-plugin-host/18742>\
**Category:** General JUCE discussion\
**Created:** [August 16, 2016, 9:10am UTC](https://forum.juce.com/t/bugreport-mousemovement-in-vst3-in-plugin-host/18742 "2016-08-16T09:10:59Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![john\_henry](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/john_henry/32/560_2.png) [@john\_henry](https://forum.juce.com/u/john_henry)\
**Post date:** [August 16, 2016, 9:10am UTC](https://forum.juce.com/t/bugreport-mousemovement-in-vst3-in-plugin-host/18742/1 "2016-08-16T09:10:59Z")

</div>

Hi JUCE team,

having some trouble with the mosueMove (…) in VST3 in Plugin Host, it gets only called on a mouse down event not on a mouse move.

To reproduce, make a new Plugin with the Projucer and add this to the Editor and Debug with Plugin Host in VST3

```
public:
   void mouseMove (const MouseEvent& e) override
    {
        DBG ("mouse moved");
    }

```

The weird thing is, it works with the Demo Plugin project, but not with a new generated one.

I’m on latest develop with a freshly built Projucer and freshly built Plugin Host, Mac OS X 10.11.4, XCode 7.3.1

Johannes

---

<div class="post-metadata">

**Author:** ![t0m](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/t0m/32/16413_2.png) [@t0m](https://forum.juce.com/u/t0m)\
**Post date:** [August 17, 2016, 10:21am UTC](https://forum.juce.com/t/bugreport-mousemovement-in-vst3-in-plugin-host/18742/2 "2016-08-17T10:21:45Z")

</div>

There’s an option in the Projucer - “Plugin editor requires keyboard focus”. This is enabled for the Demo Plugin project but disabled by default. Does selecting this option fix the problem for you?

---

<div class="post-metadata">

**Author:** ![john\_henry](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/john_henry/32/560_2.png) [@john\_henry](https://forum.juce.com/u/john_henry)\
**Post date:** [August 17, 2016, 10:43am UTC](https://forum.juce.com/t/bugreport-mousemovement-in-vst3-in-plugin-host/18742/3 "2016-08-17T10:43:19Z")

</div>

ah yes, it does, I checked the settings, but missed that. Thanks.

But the setting name still seems a bit unrelated, maybe change the name of the setting, if this is the case for more DAWs…

---

<div class="post-metadata">

**Author:** ![t0m](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/t0m/32/16413_2.png) [@t0m](https://forum.juce.com/u/t0m)\
**Post date:** [August 17, 2016, 11:24am UTC](https://forum.juce.com/t/bugreport-mousemovement-in-vst3-in-plugin-host/18742/4 "2016-08-17T11:24:32Z")

</div>

I agree that this isn’t a very satisfactory fix! I’ll dig into the code to find out what’s going on.

---

<div class="post-metadata">

**Author:** ![t0m](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/t0m/32/16413_2.png) [@t0m](https://forum.juce.com/u/t0m)\
**Post date:** [August 17, 2016, 2:13pm UTC](https://forum.juce.com/t/bugreport-mousemovement-in-vst3-in-plugin-host/18742/5 "2016-08-17T14:13:35Z")

</div>

It appears that we’re at the mercy of the host. The JUCE Demo Host behaves in the same way as Ableton.

For a VST plug-in, for example, the only difference between having “Plugin editor requires keyboard focus” selected or not is the response to the “effKeysRequired” call from the host. So it looks like this is triggering different mouse behaviour too.

---

<div class="post-metadata">

**Author:** ![john\_henry](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/john_henry/32/560_2.png) [@john\_henry](https://forum.juce.com/u/john_henry)\
**Post date:** [August 17, 2016, 3:02pm UTC](https://forum.juce.com/t/bugreport-mousemovement-in-vst3-in-plugin-host/18742/6 "2016-08-17T15:02:50Z")

</div>

alright it’s fine for me to leave this option on. (Maybe add a small text in Projucers Tooltip explaining it) But what’s still an issue that after opening the plugin I need to click once into the plugin for any hover effects to work.(mouseMove, etc. ) I’ve tried different plugins from other non JUCE manufacturers and their hover effects work right after opening (FabFilter for example).

For all JUCE plugins that does not seem the case, is there any known hack how to do this?

---

<div class="post-metadata">

**Author:** ![t0m](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/t0m/32/16413_2.png) [@t0m](https://forum.juce.com/u/t0m)\
**Post date:** [August 19, 2016, 9:55am UTC](https://forum.juce.com/t/bugreport-mousemovement-in-vst3-in-plugin-host/18742/7 "2016-08-19T09:55:31Z")

</div>

There is a hack, and I’ve just added it to the develop branch - [https://github.com/julianstorer/JUCE/commit/08b2116c2bf0be2af1ed3ec7d2e650a4e964ad9b](https://github.com/julianstorer/JUCE/commit/08b2116c2bf0be2af1ed3ec7d2e650a4e964ad9b). This works around the default OS X windowing behaviour.

---

<div class="post-metadata">

**Author:** ![john\_henry](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/john_henry/32/560_2.png) [@john\_henry](https://forum.juce.com/u/john_henry)\
**Post date:** [August 19, 2016, 2:00pm UTC](https://forum.juce.com/t/bugreport-mousemovement-in-vst3-in-plugin-host/18742/8 "2016-08-19T14:00:57Z")

</div>

great, thanks!
