Skip to content

Commit

Permalink
Include the juce::WindowsHooks for keyboard access
Browse files Browse the repository at this point in the history
VST3 pretends to help with the keyboard. JUCE works aroudn this
by hacking into the windows event queue. To do that you need to
set that up, and the shim did not.

Now the shim does.
  • Loading branch information
baconpaul committed Feb 2, 2025
1 parent 923e322 commit 98a00fb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/sst/clap_juce_shim/clap_juce_shim_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@

#include <memory>

#if JUCE_WINDOWS
#include <juce_gui_basics/native/juce_WindowsHooks_windows.h>
#endif

#define FLF __FILE__ << ":" << __LINE__ << " " << __func__ << " "

#define DO_TRACE 0
Expand All @@ -42,6 +46,10 @@ namespace details
{
struct Implementor
{
#if JUCE_WINDOWS
juce::detail::WindowsHooks hooks;
#endif

struct ImplParent : juce::Component
{
std::string displayName;
Expand Down

0 comments on commit 98a00fb

Please sign in to comment.