Skip to content

ndk/input: Allow any non-zero return in pre_dispatch() again#325

Merged
MarijnS95 merged 1 commit into
masterfrom
ndk-0.7.1-fix-pre_dispatch-returncode-handling
Nov 21, 2022
Merged

ndk/input: Allow any non-zero return in pre_dispatch() again#325
MarijnS95 merged 1 commit into
masterfrom
ndk-0.7.1-fix-pre_dispatch-returncode-handling

Conversation

@MarijnS95
Copy link
Copy Markdown
Member

Fixes #322

Despite the Android source never returning anything other than 0 or 1 there appear to be platforms out in the wild that take the documentation quite literally and return vague non-zero codes apart 1 with a possible secondary meaning.

@MarijnS95 MarijnS95 force-pushed the ndk-0.7.1-fix-pre_dispatch-returncode-handling branch from 3c831e4 to f39287c Compare September 6, 2022 17:31
Despite the [Android source] never returning anything other than `0` or
`1` there appear to be platforms out in the wild that take [the
documentation] quite literally and return vague non-zero codes apart `1`
with a possible secondary meaning.

[Android source]: https://cs.android.com/android/platform/superproject/+/master:frameworks/base/core/jni/android_view_InputQueue.cpp;drc=b6d7f3b484e4c32c144c66bee342c29e7a8d34cc;l=115
[the documentation]: https://developer.android.com/ndk/reference/group/input#ainputqueue_predispatchevent
@MarijnS95 MarijnS95 force-pushed the ndk-0.7.1-fix-pre_dispatch-returncode-handling branch from f39287c to 1dd61e2 Compare October 5, 2022 17:37
@MarijnS95 MarijnS95 changed the title ndk/input: Allow any non-zero return in pre_dispatch() again, release ndk-0.7.1 ndk/input: Allow any non-zero return in pre_dispatch() again Oct 5, 2022
@MarijnS95 MarijnS95 merged commit b67f2f1 into master Nov 21, 2022
@MarijnS95 MarijnS95 deleted the ndk-0.7.1-fix-pre_dispatch-returncode-handling branch November 21, 2022 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants