Implement IPlugView::onWheel()

This commit is contained in:
Robbert van der Helm
2020-12-21 18:56:22 +01:00
parent f1009f1941
commit 06c55fcdd8
6 changed files with 37 additions and 3 deletions
+1
View File
@@ -80,6 +80,7 @@ using ControlRequest = std::variant<Vst3PlugViewProxy::Destruct,
YaPlugView::IsPlatformTypeSupported,
YaPlugView::Attached,
YaPlugView::Removed,
YaPlugView::OnWheel,
YaPlugView::GetSize,
YaPluginBase::Initialize,
YaPluginBase::Terminate,
@@ -129,6 +129,25 @@ class YaPlugView : public Steinberg::IPlugView {
};
virtual tresult PLUGIN_API removed() override = 0;
/**
* Message to pass through a call to `IPlugView::onWheel(distance)` to the
* Wine plugin host.
*/
struct OnWheel {
using Response = UniversalTResult;
native_size_t owner_instance_id;
float distance;
template <typename S>
void serialize(S& s) {
s.value8b(owner_instance_id);
s.value4b(distance);
}
};
virtual tresult PLUGIN_API onWheel(float distance) override = 0;
virtual tresult PLUGIN_API onKeyDown(char16 key,
int16 keyCode,