Skip to content

Commit

Permalink
#1328 Issue low-prio warning on macOS if mouse events not throttled
Browse files Browse the repository at this point in the history
  • Loading branch information
helgoboss committed Dec 9, 2024
1 parent 88dfce4 commit ed4db95
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions main/src/infrastructure/proto/initial_events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,22 @@ pub fn create_initial_instance_updates(
))
}
}
if cfg!(target_os = "macos") {
if let Ok(var) = Reaper::get().get_preference_ref::<i32>("osxdisplayoptions") {
let flags = *var as u32;
let wheel_flag = flags & 64 > 0;
let swipe_flag = flags & 128 > 0;
let move_flag = flags & 256 > 0;
if !wheel_flag || !swipe_flag || !move_flag {
let msg = "At least one of the checkboxes in the REAPER preference \"Options → Settings... → General → Advanced UI/system tweaks... → Throttle mouse-events\" is not enabled. This will cause temporary user interface lags in REAPER and Playtime while using the mouse or touchpad in REAPER, e.g. when adjusting the track volume. Enabling all checkboxes will improve your REAPER experience in general, not just when using Playtime!";
warnings.push(Update::warning(
Severity::Low,
Some(Scope::Playtime),
msg.to_string(),
))
}
}
}
create(
fixed_instance_updates
.into_iter()
Expand Down

0 comments on commit ed4db95

Please sign in to comment.