Skip to content

Commit

Permalink
Comments, debug, undefined implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
SutekhVRC committed Dec 20, 2023
1 parent fbeeb41 commit a645f72
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src-tauri/src/osc/logic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ pub fn toy_input_routine(
return;
}
};
info!("Listen sock is bound");
info!(
"Listen sock is bound {} : {}",
vc_config.bind.ip(),
vc_config.bind.port()
);
bind_sock.set_nonblocking(false).unwrap();
let _ = bind_sock.set_read_timeout(Some(Duration::from_secs(1)));

Expand Down
19 changes: 19 additions & 0 deletions src-tauri/src/toy_handling/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,25 @@ pub enum ModeProcessorInput<'processor> {
RawInput(ModeProcessorInputType, &'processor mut ToyParameter),
}

/*
impl<'processor> ModeProcessorInput<'processor> {
fn is_input_processor(&self) -> bool {
if let ModeProcessorInput::InputProcessor(_) = self {
true
} else {
false
}
}
fn is_raw_input(&self) -> bool {
if let ModeProcessorInput::RawInput(_, _) = self {
true
} else {
false
}
}
}*/

pub enum ModeProcessorInputType {
Float(f64),
Boolean(bool),
Expand Down
7 changes: 6 additions & 1 deletion src-tauri/src/toy_handling/toyops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,11 @@ impl VCToyFeature {
if self.feature_enabled {
for osc_param in &mut self.osc_parameters {
if osc_param.is_assigned_param(param) {
debug!(
"Found osc parameter match in feature! : {:?} - {}",
(self.feature_index, self.feature_type),
param
);
return Some(self);
}
}
Expand Down Expand Up @@ -714,7 +719,7 @@ impl VCToyFeatures {
}
}

pub fn get_features_with_penetration_systems(
pub fn get_features_with_input_processors(
&mut self,
param: &String,
) -> Option<Vec<&mut VCToyFeature>> {
Expand Down

0 comments on commit a645f72

Please sign in to comment.