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

GameActivity PATCH: Don't read unicode via getUnicodeChar #106

Merged
merged 1 commit into from
Aug 7, 2023

Conversation

rib
Copy link
Collaborator

@rib rib commented Aug 7, 2023

The unicodeChar in GameActivityKeyEvent wasn't being exposed by android-activity because we couldn't expose the unicode character in the same way with the native-activity backend - due to how events are received via an InputQueue that doesn't expose the underlying Java references for the key events.

Now that we have a consistent way of supporting unicode character mapping via KeyCharacterMap bindings it's redundant for the GameActivity backend to call getUnicodeChar automatically for each key press.

The `unicodeChar` in `GameActivityKeyEvent` wasn't being exposed by
`android-activity` because we couldn't expose the unicode character in
the same way with the native-activity backend - due to how events are
received via an `InputQueue` that doesn't expose the underlying Java
references for the key events.

Now that we have a consistent way of supporting unicode character
mapping via `KeyCharacterMap` bindings it's redundant for the
`GameActivity` backend to call `getUnicodeChar` automatically for
each key press.
@rib rib merged commit 535994f into main Aug 7, 2023
3 checks passed
@rib rib deleted the rib/pr/game-activity-disable-get-unicode-char branch August 7, 2023 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant