ndk
ndk copied to clipboard
Rust bindings to the Android NDK
Hello, I believe the behaviour of `InputQueue::pre_dispatch` in v0.7 is wrong compared to v0.6, the ndk docs for `AInputQueue_preDispatchEvent` say this about the return value: > ...Returns 0 if it...
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...
Note that an `enum` suffix had to be added to `AMidi.h` to prevent `bindgen` from erroring out on (EDIT: reported upstream at https://github.com/android/ndk/issues/1739): ~/Android/Sdk/ndk/25.0.8775105/toolchains/llvm/prebuilt/linux-x86_64/sysroot//usr/include/amidi/AMidi.h:230:1: error: must use 'enum' tag to...
I'm working on a PR for winit that adds stylus support for Windows and Android. This getter is required to differentiate between touch, mouse and stylus inputs consistently.
The MediaCodec wrapper had some issues with handling some non-error results for `dequeue_output_buffer`. This PR fixes it. The PR has been tested for the decoder path in soon-to-be-in-production code. I...
See https://github.com/rust-windowing/android-ndk-rs/pull/296#issuecomment-1153288154, there are multiple ways we can approach this. Something based on borrows (Like how `String` + `&str` work together) has my preference, but we can't give any sensible...
I try to base the project develop a game. I see the activity.instance never be assignment ,so onInputEvent function alway null. The project can't recive click input from android is...
Currently trying to port one of my programs (winit/wgpu) to Android but I need file selection. Currently, I have the intent being called successfully: ```rs let ctx = ndk_context::android_context(); let...
For my workspace, I have my target moved to another folder. ``` [build] target-dir = "../../../../../Nextcloud_Cargo/git/github/clay53/tutor_engine" ``` Trying to build with `cargo apk build`, I get this error (nothing else):...