20#include "gui/ui/keyboard/layout.h"
22namespace deluge::gui::ui::keyboard::layout {
24constexpr int32_t kMinNornsRowInterval = 1;
25constexpr int32_t kMaxNornsRowInterval = 16;
27class KeyboardLayoutNorns :
public KeyboardLayout {
29 KeyboardLayoutNorns() =
default;
30 ~KeyboardLayoutNorns()
override =
default;
35 bool encoderPressed =
false)
override;
38 void renderPads(
RGB image[][kDisplayWidth + kSideBarWidth])
override;
40 l10n::String name()
override {
return l10n::String::STRING_FOR_KEYBOARD_LAYOUT_NORNS; }
42 bool supportsKit()
override {
return false; }
45 inline uint8_t noteFromCoords(int32_t x, int32_t y) {
return x + y * kDisplayWidth; }
This class represents the colour format most used by the Deluge globally.
Definition rgb.h:14
void precalculate() override
This function is called on visibility change and if colour offset changes.
Definition norns.cpp:42
void handleVerticalEncoder(int32_t offset) override
Shift state not supplied since that function is already taken.
Definition norns.cpp:35
void renderPads(RGB image[][kDisplayWidth+kSideBarWidth]) override
Handle output.
Definition norns.cpp:45
void evaluatePads(PressedPad presses[kMaxNumKeyboardPadPresses]) override
Handle input pad presses.
Definition norns.cpp:22
bool supportsInstrument() override
This currently includes Synth, MIDI and CV.
Definition norns.h:41
void handleHorizontalEncoder(int32_t offset, bool shiftEnabled, PressedPad presses[kMaxNumKeyboardPadPresses], bool encoderPressed=false) override
Will be called with offset 0 to recalculate bounds on clip changes.
Definition norns.cpp:38
Definition notes_state.h:31