Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android: map unknown Keycodes Key::Unidentified #3155

Closed
wants to merge 1 commit into from

Conversation

rib
Copy link
Contributor

@rib rib commented Oct 16, 2023

Now that the android_activity::input::Keycodes enum is #[non_exhaustive] but can also preserve the SDK integer value for any keycodes that might not be known about at compile time, this forwards any unknown keycode as Key::Unidentified.

(Required to be compatible with the android-activity 0.5.0 release)

Now that the `android_activity::input::Keycodes` enum is
`#[non_exhaustive]` but can also preserve the SDK integer value for any
keycodes that might not be known about at compile time, this forwards
any unknown keycode as `Key::Unidentified`.
@rib rib requested a review from msiglreith as a code owner October 16, 2023 23:13
@rib rib requested review from kchibisov and removed request for msiglreith October 16, 2023 23:13
@kchibisov
Copy link
Member

@rib maybe you should send your patch against #3145 along the android-activity 0.5? You can post a diff there and I just merge the update.

The CI won't pass with such a change as of now.

@rib
Copy link
Contributor Author

rib commented Oct 16, 2023

@rib maybe you should send your patch against #3145 along the android-activity 0.5? You can post a diff there and I just merge the update.

The CI won't pass with such a change as of now.

Okey, yeah, makes sense. I've squashed this change into #3145

@rib rib closed this Oct 16, 2023
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.

2 participants