fix lerping
This commit is contained in:
parent
cafe38aae6
commit
bf3e531d20
|
@ -50,7 +50,7 @@ fn main() -> Result<()> {
|
||||||
spawn(move || twitch::run(st));
|
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 xmax_frame: u64 = 0;
|
||||||
let mut ymax_frame: u64 = 0;
|
let mut ymax_frame: u64 = 0;
|
||||||
|
|
||||||
|
@ -93,7 +93,7 @@ fn main() -> Result<()> {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
sticky = match stickx {
|
sticky = match sticky {
|
||||||
0 => sticky,
|
0 => sticky,
|
||||||
127 => {
|
127 => {
|
||||||
ymax_frame = data.frame;
|
ymax_frame = data.frame;
|
||||||
|
|
Loading…
Reference in New Issue