Lots + MIDI implementation
This commit is contained in:
@@ -11,6 +11,8 @@ pub enum OptionsFocus {
|
||||
LinkEnabled,
|
||||
StartStopSync,
|
||||
Quantum,
|
||||
MidiOutput,
|
||||
MidiInput,
|
||||
}
|
||||
|
||||
#[derive(Default)]
|
||||
@@ -30,13 +32,15 @@ impl OptionsState {
|
||||
OptionsFocus::FlashBrightness => OptionsFocus::LinkEnabled,
|
||||
OptionsFocus::LinkEnabled => OptionsFocus::StartStopSync,
|
||||
OptionsFocus::StartStopSync => OptionsFocus::Quantum,
|
||||
OptionsFocus::Quantum => OptionsFocus::ColorScheme,
|
||||
OptionsFocus::Quantum => OptionsFocus::MidiOutput,
|
||||
OptionsFocus::MidiOutput => OptionsFocus::MidiInput,
|
||||
OptionsFocus::MidiInput => OptionsFocus::ColorScheme,
|
||||
};
|
||||
}
|
||||
|
||||
pub fn prev_focus(&mut self) {
|
||||
self.focus = match self.focus {
|
||||
OptionsFocus::ColorScheme => OptionsFocus::Quantum,
|
||||
OptionsFocus::ColorScheme => OptionsFocus::MidiInput,
|
||||
OptionsFocus::RefreshRate => OptionsFocus::ColorScheme,
|
||||
OptionsFocus::RuntimeHighlight => OptionsFocus::RefreshRate,
|
||||
OptionsFocus::ShowScope => OptionsFocus::RuntimeHighlight,
|
||||
@@ -46,6 +50,8 @@ impl OptionsState {
|
||||
OptionsFocus::LinkEnabled => OptionsFocus::FlashBrightness,
|
||||
OptionsFocus::StartStopSync => OptionsFocus::LinkEnabled,
|
||||
OptionsFocus::Quantum => OptionsFocus::StartStopSync,
|
||||
OptionsFocus::MidiOutput => OptionsFocus::Quantum,
|
||||
OptionsFocus::MidiInput => OptionsFocus::MidiOutput,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user