Replace nav buttons with a virtual joystick pad

This commit is contained in:
Armin 2026-10-09 17:58:07 +02:00
commit c7ebd3ed4d
6 changed files with 418 additions and 76 deletions

View file

@ -4,6 +4,7 @@
#include "PluginProcessor.h"
#include "LcdDisplay.h"
#include "MenuSystem.h"
#include "JoystickPad.h"
#include "Presets.h"
#include "SynthParams.h"
@ -34,12 +35,6 @@ private:
SM26AudioProcessor& proc;
MenuSystem menu;
class NavButtonLookAndFeel : public juce::LookAndFeel_V4
{
public:
juce::Font getTextButtonFont (juce::TextButton&, int) override;
} navLookAndFeel;
LcdDisplay lcd;
bool knobDragging[4] = {};
@ -48,12 +43,10 @@ private:
juce::Label knobLabels[4];
juce::Label knobValueLabels[4];
juce::TextButton navUp { "UP" };
juce::TextButton navDown { "DN" };
juce::TextButton navLeft { "LT" };
juce::TextButton navRight { "RT" };
juce::TextButton navEnter { "OK" };
juce::TextButton navEsc { "ESC" };
RoundNavButton navEnter { "OK" };
RoundNavButton navEsc { "ESC" };
JoystickPad navStick;
juce::Label footer;