-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Open
Labels
A-InputPlayer input via keyboard, mouse, gamepad, and morePlayer input via keyboard, mouse, gamepad, and moreC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behaviorO-AndroidSpecific to the Android mobile operating systemSpecific to the Android mobile operating systemS-Needs-InvestigationThis issue requires detective work to figure out what's going wrongThis issue requires detective work to figure out what's going wrong
Description
Bevy version
release-0.15.0 (3f2baf8)
Relevant system information
cargo 1.83.0 (5ffbef321 2024-10-29)
rustc 1.83.0 (90b35a623 2024-11-26)
Emulator: Pixel 8 Pro API 31 (Android 12.0 x86_64)
What you did
I followed the readme instructions and ran the android_example
on an Android emulator. The app launches and runs successfully, but touch events are not working.
The only modification I made was due to #10945.
DefaultPlugins
.set(LogPlugin {
// This will show some log events from Bevy to the native logger.
level: Level::DEBUG,
filter: "wgpu=error,bevy_render=info,bevy_ecs=trace".to_string(),
..Default::default()
})
.set(WindowPlugin {
primary_window: Some(Window {
resizable: false,
mode: WindowMode::BorderlessFullscreen(MonitorSelection::Primary),
// on iOS, gestures must be enabled.
// This doesn't work on Android
recognize_rotation_gesture: true,
..default()
}),
..default()
})
// Modification part
.set(RenderPlugin {
render_creation: RenderCreation::Automatic(WgpuSettings {
backends: Some(Backends::VULKAN),
..default()
}),
..default()
}),
What went wrong
The app does not respond to touch events. Buttons and camera panning are not functional.
This issue only occurs when using cargo-ndk
+ gradlew
with GameActivity
.
Everything works fine when using NativeActivity
or cargo-apk
.
Danielmelody
Metadata
Metadata
Assignees
Labels
A-InputPlayer input via keyboard, mouse, gamepad, and morePlayer input via keyboard, mouse, gamepad, and moreC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behaviorO-AndroidSpecific to the Android mobile operating systemSpecific to the Android mobile operating systemS-Needs-InvestigationThis issue requires detective work to figure out what's going wrongThis issue requires detective work to figure out what's going wrong