Skip to content

Commit

Permalink
Add TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
Sirius902 committed Nov 11, 2024
1 parent 4e7df36 commit c964d78
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/gcfeeder/src/gui/app/panel/calibration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,9 @@ impl<'a, L: InputListener> CalibrationPanel<'a, L> {
ui.add(Self::right_trigger(&mapped).with_markers(&trigger_points));
});
}
// TODO: Inputs may be consumed faster than they are generated. Use a different method
// to maintain last known value and check if controller is connected directly versus by
// checking if there was an input.
Action::CalibrateSticks(progress, rx) => {
let record = rx.try_recv().ok().flatten();
let raw = record.unwrap_or_default();
Expand Down Expand Up @@ -316,6 +319,9 @@ impl<'a, L: InputListener> CalibrationPanel<'a, L> {
*action = next_action;
}
}
// TODO: Inputs may be consumed faster than they are generated. Use a different method
// to maintain last known value and check if controller is connected directly versus by
// checking if there was an input.
Action::CalibrateTriggers(progress, rx) => {
let record = rx.try_recv().ok().flatten();
let raw = record.unwrap_or_default();
Expand Down

0 comments on commit c964d78

Please sign in to comment.