aboutsummaryrefslogtreecommitdiffstats
path: root/src/globals.c
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2023-05-30 14:39:30 +0200
committerBad Diode <bd@badd10de.dev>2023-05-30 14:39:30 +0200
commitd813b06a015bd678af7d8262b26373759bf2aacb (patch)
tree44378d9b77dbf75c7ea83c706452c7f0a2762817 /src/globals.c
parentb4593763ec78f14b9c6fb309f595740264969806 (diff)
downloadstepper-d813b06a015bd678af7d8262b26373759bf2aacb.tar.gz
stepper-d813b06a015bd678af7d8262b26373759bf2aacb.zip
Add settings button and navigation
Diffstat (limited to 'src/globals.c')
-rw-r--r--src/globals.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/globals.c b/src/globals.c
index f62962a..5580681 100644
--- a/src/globals.c
+++ b/src/globals.c
@@ -46,7 +46,7 @@ bool clear_screen = true;
46#define PIANO_W 170 46#define PIANO_W 170
47#define PIANO_H 20 47#define PIANO_H 20
48#define PIANO_START_X 30 48#define PIANO_START_X 30
49#define PIANO_START_Y 67 49#define PIANO_START_Y 69
50#define PIANO_NOTE_W 2 50#define PIANO_NOTE_W 2
51 51
52#define PARAMS_W 170 52#define PARAMS_W 170
@@ -68,6 +68,8 @@ bool clear_screen = true;
68#define BPM_START_Y (TRIG_START_Y + TRIG_H + 8) 68#define BPM_START_Y (TRIG_START_Y + TRIG_H + 8)
69#define BPM_H 22 69#define BPM_H 22
70 70
71#define SETTINGS_START_X (R_SIDEBAR_X)
72#define SETTINGS_START_Y (TRIG_START_Y - 7)
71#define PLAY_START_X (R_SIDEBAR_X) 73#define PLAY_START_X (R_SIDEBAR_X)
72#define PLAY_START_Y (TRIG_START_Y + 12) 74#define PLAY_START_Y (TRIG_START_Y + 12)
73#define STOP_START_X (R_SIDEBAR_X + 14) 75#define STOP_START_X (R_SIDEBAR_X + 14)
@@ -81,13 +83,14 @@ bool clear_screen = true;
81#define SEQ_N_CHANNELS 4 83#define SEQ_N_CHANNELS 4
82 84
83enum RIGHT_COL_LOC { 85enum RIGHT_COL_LOC {
84 R_COL_BPM = 0, 86 R_COL_BPM = 0,
85 R_COL_PLAY = 1, 87 R_COL_PLAY = 1,
86 R_COL_STOP = 2, 88 R_COL_STOP = 2,
87 R_COL_BANK_D = 3, 89 R_COL_SETTINGS = 3,
88 R_COL_BANK_C = 4, 90 R_COL_BANK_D = 4,
89 R_COL_BANK_B = 5, 91 R_COL_BANK_C = 5,
90 R_COL_BANK_A = 6, 92 R_COL_BANK_B = 6,
93 R_COL_BANK_A = 7,
91}; 94};
92 95
93// Input handling works using a FSM. The input handler is switched to whichever 96// Input handling works using a FSM. The input handler is switched to whichever