[Linux] How to deal with keyboard event

SDK for VST 3 audio plug-in and host development.
Post Reply
abique
Posts: 42
Joined: Tue Jun 21, 2016 12:43 pm

[Linux] How to deal with keyboard event

Post by abique » Tue Apr 28, 2020 6:29 pm

Hi,

I wonder what is the correct way to deal with keyboard events on Linux.

Should the plugin forward unhandled events to the parent window?

Should the DAW intercept all events and then decide which one to forward to the plugin? If so, should it happen using the vst3 interfaces or by forwarding the X11 events directly?

Many thanks,
Alexandre

Arne Scheffler
Posts: 343
Joined: Mon Jun 20, 2016 7:53 am

Re: [Linux] How to deal with keyboard event

Post by Arne Scheffler » Thu Apr 30, 2020 3:23 pm

Hi,
I'm not very familiar with X11 but if forwarding events work, then the plug-in editor should handle keyboard events if it has focus. If a keystroke is not consumed by it, then it should forward the event to the parent window. If forwarding events doesn't work, then the host should handle all this.

Cheers,
Arne

Post Reply