diff --git a/ndk/CHANGELOG.md b/ndk/CHANGELOG.md index 7297184f..8f4d8081 100644 --- a/ndk/CHANGELOG.md +++ b/ndk/CHANGELOG.md @@ -1,6 +1,7 @@ # Unreleased - event: Add `tool_type` getter for `Pointer`. (#323) +- input_queue: Allow any non-zero return code from `pre_dispatch()` again, as per documentation. (#325) # 0.7.0 (2022-07-24) diff --git a/ndk/src/input_queue.rs b/ndk/src/input_queue.rs index ecd8c006..1ca5a0eb 100644 --- a/ndk/src/input_queue.rs +++ b/ndk/src/input_queue.rs @@ -78,8 +78,7 @@ impl InputQueue { match unsafe { ffi::AInputQueue_preDispatchEvent(self.ptr.as_ptr(), event.ptr().as_ptr()) } { 0 => Some(event), - 1 => None, - r => unreachable!("AInputQueue_preDispatchEvent returned non-boolean {}", r), + _ => None, } }