Skip to content

Emit Android joystick axes as AxisMotion events#4616

Closed
brianconnoly wants to merge 1 commit into
rust-windowing:v0.30.xfrom
brianconnoly:vss/android-joystick-axes-0.30.13
Closed

Emit Android joystick axes as AxisMotion events#4616
brianconnoly wants to merge 1 commit into
rust-windowing:v0.30.xfrom
brianconnoly:vss/android-joystick-axes-0.30.13

Conversation

@brianconnoly

Copy link
Copy Markdown

Summary

  • route Android joystick/gamepad MotionEvent samples before the touch path
  • emit WindowEvent::AxisMotion for common joystick, hat and analog trigger axes
  • keep touch handling unchanged for non-joystick MotionEvent sources

This lets Android gamepad sticks, D-pad hats and analog triggers reach applications through Winit axis events instead of being dropped as unhandled motion input.

Validation

  • CARGO_TARGET_DIR=/Volumes/RustBuilds/vibe-scrap-squad/target/winit-fork-upstream CARGO_INCREMENTAL=0 cargo check -p winit --target aarch64-linux-android --features android-native-activity

@brianconnoly brianconnoly marked this pull request as draft July 8, 2026 09:33
@brianconnoly brianconnoly changed the base branch from master to v0.30.x July 8, 2026 09:35
@brianconnoly

Copy link
Copy Markdown
Author

Superseded by #4618, which carries the same Android joystick-axis work adapted to current master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant