diff --git a/risc_v/src/input.rs b/risc_v/src/input.rs index 4994aa2..5e27069 100755 --- a/risc_v/src/input.rs +++ b/risc_v/src/input.rs @@ -236,9 +236,9 @@ pub fn setup_input_device(ptr: *mut u32) -> bool { repopulate_event(&mut dev, i); } INPUT_DEVICES[idx] = Some(dev); - ABS_EVENTS = Some(VecDeque::with_capacity(1000)); + ABS_EVENTS = Some(VecDeque::with_capacity(100)); // ABS_OBSERVERS = Some(VecDeque::new()); - KEY_EVENTS = Some(VecDeque::with_capacity(1000)); + KEY_EVENTS = Some(VecDeque::with_capacity(10)); // KEY_OBSERVERS = Some(VecDeque::new()); true