From 2611fa7296552e0226c8dba35798965555191592 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Aedo?= Date: Sun, 28 Feb 2021 20:48:44 -0300 Subject: [PATCH] hotfix: add duration print --- Cargo.lock | 30 +++++++++++++++--------------- README.md | 1 + botw-freecam/Cargo.toml | 2 +- botw-freecam/src/utils.rs | 3 +++ 4 files changed, 20 insertions(+), 16 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 0bba57a..4b22816 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -14,9 +14,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.36" +version = "1.0.38" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68803225a7b13e47191bab76f2687382b60d259e8cf37f6e1893658b84bb9479" +checksum = "afddf7f520a80dbf76e6f50a35bca42a2331ef227a28b3b6dc5c2e2338d114b1" [[package]] name = "approx" @@ -47,7 +47,7 @@ checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693" [[package]] name = "botw-freecam" -version = "0.2.0" +version = "0.2.1" dependencies = [ "cc", "log", @@ -61,15 +61,15 @@ dependencies = [ [[package]] name = "cc" -version = "1.0.66" +version = "1.0.67" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c0496836a84f8d0495758516b8621a622beb77c0fed418570e50764093ced48" +checksum = "e3c69b077ad434294d3ce9f1f6143a2a4b89a8a2d54ef813d85003a4fd1137fd" [[package]] name = "cfg-if" -version = "0.1.10" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822" +checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "chrono" @@ -118,9 +118,9 @@ dependencies = [ [[package]] name = "libc" -version = "0.2.81" +version = "0.2.86" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1482821306169ec4d07f6aca392a4681f66c75c9918aa49641a2595db64053cb" +checksum = "b7282d924be3275cec7f6756ff4121987bc6481325397dde6ba3e7802b1a8b1c" [[package]] name = "libm" @@ -130,9 +130,9 @@ checksum = "7fc7aa29613bd6a620df431842069224d8bc9011086b1db4c0e0cd47fa03ec9a" [[package]] name = "log" -version = "0.4.11" +version = "0.4.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fabed175da42fed1fa0746b0ea71f412aa9d35e76e95e59b192c64b9dc2bf8b" +checksum = "51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710" dependencies = [ "cfg-if", ] @@ -148,8 +148,8 @@ dependencies = [ [[package]] name = "memory-rs" -version = "0.2.1" -source = "git+https://github.com/etra0/memory-rs#0544fe2e4630ebd4248197e7906fb65d859a8626" +version = "0.2.2" +source = "git+https://github.com/etra0/memory-rs#4ec5375bd443c0f38e624c0d899694f630ab442b" dependencies = [ "anyhow", "winapi", @@ -335,9 +335,9 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.118" +version = "1.0.123" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06c64263859d87aa2eb554587e2d23183398d617427327cf2b3d0ed8c69e4800" +checksum = "92d5161132722baa40d802cc70b15262b98258453e85e5d1d365c757c73869ae" [[package]] name = "simple_injector" diff --git a/README.md b/README.md index 16df4d8..9500d79 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,7 @@ F9 Add a point to the sequence F10 Plays the sequence F11 Cleans the sequence L Plays the sequence in a loop (F8 to break it) +O/P Change the duration of the sequence ``` # Thanks diff --git a/botw-freecam/Cargo.toml b/botw-freecam/Cargo.toml index d949323..6690711 100644 --- a/botw-freecam/Cargo.toml +++ b/botw-freecam/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "botw-freecam" -version = "0.2.0" +version = "0.2.1" authors = ["Sebastián Aedo "] edition = "2018" diff --git a/botw-freecam/src/utils.rs b/botw-freecam/src/utils.rs index b8ff17c..183e5eb 100644 --- a/botw-freecam/src/utils.rs +++ b/botw-freecam/src/utils.rs @@ -21,6 +21,7 @@ F9\t\t\t\t\tAdd a point to the sequence F10\t\t\t\t\tPlays the sequence F11\t\t\t\t\tCleans the sequence L\t\t\t\t\tPlays the sequence in a loop (F8 to break it) +O/P\t\t\t\t\tChange the duration of the sequence ------------------------------"; const CARGO_VERSION: Option<&'static str> = option_env!("CARGO_PKG_VERSION"); @@ -206,9 +207,11 @@ pub fn handle_keyboard(input: &mut Input) { if check_key_press(Keys::P as _) { input.dolly_duration += input.dolly_increment; input.dolly_increment *= 1.01; + println!("Duration: {}", input.dolly_duration); } else if check_key_press(Keys::O as _) { input.dolly_duration -= input.dolly_increment; input.dolly_increment *= 1.01; + println!("Duration: {}", input.dolly_duration); } else { input.dolly_increment = 0.01 }