Files
virtual-controller/plugin-reaper-relearn/main/src/domain/realearn_source_context.rs
T
Paul Lipscomb 7ecc718f5d Reorganize top-level directories with clearer naming convention
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>
2026-07-15 17:51:05 -04:00

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()
}
}