mirror of https://github.com/wayvr-org/wayvr.git
use latest swipe_type library version
This commit is contained in:
parent
5cf1a0c34c
commit
47a3c65ca0
|
|
@ -6101,9 +6101,9 @@ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "super-swipe-type"
|
name = "super-swipe-type"
|
||||||
version = "0.1.2"
|
version = "0.2.2"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "32fd40ad969f38b55f6d1541d7c1a16226821b51a38362de7aa800f976632336"
|
checksum = "22126517bdf94f41b3d0af625fdf69b5ff131b7dd19a59866d3c00a56072af88"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"cached-path",
|
"cached-path",
|
||||||
|
|
|
||||||
|
|
@ -90,7 +90,7 @@ xcb = { version = "1.6.0", optional = true, features = [
|
||||||
xkbcommon = { version = "0.8.0" } # 0.9.0 breaks keymap import on some distros
|
xkbcommon = { version = "0.8.0" } # 0.9.0 breaks keymap import on some distros
|
||||||
codes-iso-639 = "0.1.5"
|
codes-iso-639 = "0.1.5"
|
||||||
arboard = { version="3.6.1", features = ["wayland-data-control", "wl-clipboard-rs"] }
|
arboard = { version="3.6.1", features = ["wayland-data-control", "wl-clipboard-rs"] }
|
||||||
super-swipe-type = "0.1.2"
|
super-swipe-type = "0.2.2"
|
||||||
|
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
|
|
|
||||||
|
|
@ -212,7 +212,7 @@ impl SwipeTypingManager {
|
||||||
};
|
};
|
||||||
|
|
||||||
let point = within_key_pos_from_center * key_dimensions + key_pos;
|
let point = within_key_pos_from_center * key_dimensions + key_pos;
|
||||||
let duration = Instant::now().duration_since(start_time);
|
let duration = Instant::now().duration_since(start_time).mul_f32(0.8); // multiply by .8 because library is trained on mobile swipes which happen on a smaller keyboard and are faster
|
||||||
self.current_swipe
|
self.current_swipe
|
||||||
.push(SwipePoint::new(point.x.into(), point.y.into(), duration))
|
.push(SwipePoint::new(point.x.into(), point.y.into(), duration))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue