diff --git a/dhc/src/input/mod.rs b/dhc/src/input/mod.rs index 12cca48..9c96c13 100644 --- a/dhc/src/input/mod.rs +++ b/dhc/src/input/mod.rs @@ -254,7 +254,8 @@ impl RawInputManager { }; if result == -1i32 as u32 { - panic!("GetRawInputData failed to get raw input data"); + error!("GetRawInputData failed to get raw input data"); + return; } let rawinput = unsafe { *(&buffer as *const AlignedBuffer as *const RAWINPUT) };