mirror of
https://codeberg.org/armin/sm-26.git
synced 2026-10-11 17:01:53 +02:00
Replace nav buttons with a virtual joystick pad
This commit is contained in:
parent
7fd884141b
commit
c7ebd3ed4d
6 changed files with 418 additions and 76 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue