android display input information problem

Open
#2,779 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
android, rust
Domain
mobile

Research direction

Start by reading the Android input handling in the android/mod module, especially the InputEvent::KeyEvent path mentioned in the report, and compare it with the agdk-egui usage shown. Clarify whether the target is keyboard text input, Chinese text display, or an example; done should include a reproducible Android input path and a documented result or supported example.

Written by the indexing model from the issue text.

Description

DS - android

Hello everyone. I try to display the information entered by the soft keyboard on android (I use the agdk-egui project), and I have the soft keyboard pop up in the "Touch" response:

winit::event::WindowEvent::Touch(touch) => {
     if touch.phase == TouchPhase::Started {
        app.show_soft_input(true);
    }
}

But there is no corresponding character displayed on the egui when entering information on the keyboard. I saw the response of InputEvent::KeyEvent implemented in the android/mod module of winit. May I ask: 1. How to realize the input response function on android? Is there a corresponding example? 2. It seems that there is no Chinese display on android, is it? Will there be a related support plan in the near future? Are there other solutions that can support displaying Chinese? Thanks.

Dominant language
Rust
Stars
6.2k
Forks
1.3k
Avg merge
2d 19h
Merged PRs (30d)
9

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rust-windowing/winit

All issues in rust-windowing/winit

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.