iOS::Does JUCE support bluetooth keyboard input?

I want to control my app from bluetooth keyboard not for writing text, but for triggering events just like “shortcut key” in desktop OSs.
Can I use it for that purpose?

What I did…
create a GUI project from Projucer and write something like that…

class MainComponent : juce::Component
{
public:
    MainComponent()
    {
        setWantsKeyboardFocus(true);
    }
    bool keyPressed(const juce::KeyPress& key)override
    {
        DBG(key.getTextDescription());
        return false;
    }
}

But nothing had been outputted.
When I tap TextEditor component and write something, it inputs properly.
So I connected BlueTooth keyboard properly.

That’s not Bluetooth issue but iOS issue/design.

JUCE doesn’t implement keyboard on iOS (it only has some hidden text boxes).

So if you’ll check the UIComponentPeer you’ll notice it has no implementation for keyboard or even ability to add keyboard shortcuts.

1 Like