diff --git a/risc_v/src/input.rs b/risc_v/src/input.rs index c848c4d..4994aa2 100755 --- a/risc_v/src/input.rs +++ b/risc_v/src/input.rs @@ -236,7 +236,7 @@ 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(100000)); + ABS_EVENTS = Some(VecDeque::with_capacity(1000)); // ABS_OBSERVERS = Some(VecDeque::new()); KEY_EVENTS = Some(VecDeque::with_capacity(1000)); // KEY_OBSERVERS = Some(VecDeque::new()); diff --git a/risc_v/src/userspace/fb.cpp b/risc_v/src/userspace/fb.cpp index 3f2e090..2fa4ae1 100644 --- a/risc_v/src/userspace/fb.cpp +++ b/risc_v/src/userspace/fb.cpp @@ -3,7 +3,7 @@ #include -#define MAX_EVENTS 100000 +#define MAX_EVENTS 100 #define cos(x) table_cos(x) // #define cos(x) taylor_cos(x) #define min(x, y) ((x < y) ? x : y)