Skip to content

Commit

Permalink
hotfix: add duration print
Browse files Browse the repository at this point in the history
  • Loading branch information
etra0 committed Feb 28, 2021
1 parent 75ef4a3 commit 2611fa7
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 16 deletions.
30 changes: 15 additions & 15 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion botw-freecam/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "botw-freecam"
version = "0.2.0"
version = "0.2.1"
authors = ["Sebastián Aedo <sebastian.aedo@sansano.usm.cl>"]
edition = "2018"

Expand Down
3 changes: 3 additions & 0 deletions botw-freecam/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 2611fa7

Please sign in to comment.