fix lerping

This commit is contained in:
Cadey Ratio 2020-05-08 23:50:23 -04:00
parent cafe38aae6
commit bf3e531d20
1 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ fn main() -> Result<()> {
spawn(move || twitch::run(st));
}
const LERP_TIME: f64 = 1.0; // 15 frames to lerp stick positions down to 0
const LERP_TIME: f64 = 90.0; // 90 frames to lerp stick positions down to 0
let mut xmax_frame: u64 = 0;
let mut ymax_frame: u64 = 0;
@ -93,7 +93,7 @@ fn main() -> Result<()> {
},
};
sticky = match stickx {
sticky = match sticky {
0 => sticky,
127 => {
ymax_frame = data.frame;