From 8c2523341b8f72d7cd7efe508fbde7b8481472dc Mon Sep 17 00:00:00 2001 From: Josh Gao Date: Mon, 8 Apr 2019 18:49:57 -0700 Subject: [PATCH] Demote a panic to a warning. --- dhc/src/input/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) };