7ecc718f5d
app -> app-desktop-macos, presets -> app-presets, server -> remote-server, daw-config-reaper -> osc-config-daw, plugin-reaper-realearn -> plugin-reaper-relearn. Updated run.py and presets.py path references accordingly. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
21 lines
600 B
Rust
21 lines
600 B
Rust
use base::hash_util::NonCryptoHashMap;
|
|
use helgoboss_learn::devices::x_touch::XTouchMackieLcdState;
|
|
use reaper_medium::MidiOutputDeviceId;
|
|
|
|
/// Global state about sources.
|
|
#[derive(Default)]
|
|
pub struct RealearnSourceState {
|
|
x_touch_mackie_lcd_state_by_device: NonCryptoHashMap<MidiOutputDeviceId, XTouchMackieLcdState>,
|
|
}
|
|
|
|
impl RealearnSourceState {
|
|
pub fn get_x_touch_mackie_lcd_state_mut(
|
|
&mut self,
|
|
device: MidiOutputDeviceId,
|
|
) -> &mut XTouchMackieLcdState {
|
|
self.x_touch_mackie_lcd_state_by_device
|
|
.entry(device)
|
|
.or_default()
|
|
}
|
|
}
|