Skip to content

Commit

Permalink
Dont optimize libinput curves for graph
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuuuube committed Jul 24, 2024
1 parent fadd38f commit f1ffef1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2021"

[dependencies]
rawaccel_convert = { git = "https://github.com/Kuuuube/rawaccel_convert.git", rev = "c39bea5790421a46b39993c7d789a97622b67f6d" }
rawaccel_convert = { git = "https://github.com/Kuuuube/rawaccel_convert.git", rev = "475c7758d73588563b38cba589ae907f4f0407e1" }
egui = "0.28.1"
eframe = { version = "0.28.1", features = [ "default_fonts", "glow", "persistence" ] }
env_logger = "0.11.3"
Expand Down
5 changes: 5 additions & 0 deletions src/gui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,11 @@ fn add_points_dump(rawaccel_convert_gui: &mut RawaccelConvertGui, ui: &mut egui:
{
rawaccel_convert_gui.export_accel_args_cache = rawaccel_convert_gui.accel_args.clone();

rawaccel_convert_gui.accel_args.optimize_curve = match rawaccel_convert_gui.export_point_scaling {
PointScaling::Sens | PointScaling::Velocity | PointScaling::Gain => true,
PointScaling::Libinput | PointScaling::LibinputDebug => false,
};

//graph curve
rawaccel_convert_gui.curvegen =
rawaccel_convert::generate_curve::generate_curve(&rawaccel_convert_gui.accel_args);
Expand Down

0 comments on commit f1ffef1

Please sign in to comment.