summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2019-12-13 02:55:25 -0500
committerClement Tsang <34804052+ClementTsang@users.noreply.github.com>2019-12-13 02:55:25 -0500
commit8c005a327bcdd0279a5a4f114619e8510874206a (patch)
tree4a57aa2297ac021d4d7afb39cfd117801e5bee53
parenta0729d391319e8b6fe8a94aac1ff4ba75a2e9425 (diff)
Tweaked mouse and keyboard accept rates
-rw-r--r--src/main.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs
index 56593d09..65990299 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -127,7 +127,7 @@ fn main() -> error::Result<()> {
for event in reader {
match event {
InputEvent::Keyboard(key) => {
- if Instant::now().duration_since(keyboard_timer).as_millis() >= 10 {
+ if Instant::now().duration_since(keyboard_timer).as_millis() >= 30 {
if tx.send(Event::KeyInput(key)).is_err() {
return;
}
@@ -151,7 +151,7 @@ fn main() -> error::Result<()> {
if let Some(event) = reader.next() {
match event {
InputEvent::Keyboard(key) => {
- if Instant::now().duration_since(keyboard_timer).as_millis() >= 10 {
+ if Instant::now().duration_since(keyboard_timer).as_millis() >= 30 {
if tx.send(Event::KeyInput(key)).is_err() {
return;
}
@@ -159,7 +159,7 @@ fn main() -> error::Result<()> {
}
}
InputEvent::Mouse(mouse) => {
- if Instant::now().duration_since(mouse_timer).as_millis() >= 40 {
+ if Instant::now().duration_since(mouse_timer).as_millis() >= 30 {
if tx.send(Event::MouseInput(mouse)).is_err() {
return;
}