We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a33946 commit cb8cb9fCopy full SHA for cb8cb9f
plugins/ProM/DistrhoUIProM.cpp
@@ -297,6 +297,14 @@ bool DistrhoUIProM::onKeyboard(const KeyboardEvent& ev)
297
return true;
298
}
299
300
+bool DistrhoUIProM::onMouse(const MouseEvent& ev)
301
+{
302
+ if (ev.press)
303
+ getWindow().focus();
304
+
305
+ return false;
306
+}
307
308
// -----------------------------------------------------------------------
309
310
UI* createUI()
plugins/ProM/DistrhoUIProM.hpp
@@ -49,6 +49,7 @@ class DistrhoUIProM : public UI
49
50
void onDisplay() override;
51
bool onKeyboard(const KeyboardEvent&) override;
52
+ bool onMouse(const MouseEvent& ev) override;
53
54
private:
55
ScopedPointer<projectM> fPM;
0 commit comments