3

Can some on point how the EventHub.cpp signals the JNI in the later android versions. Before there was a KeyInputQueue.java where all input events were queued. I got the latest android sources and now the KeyInputQueue.java is gone so I am trying to find the JNI/Java class where events are dispatched to android.

Tanks: T.

1 Answer 1

2

The InputManager creates the EventHub and makes one thread for InputReader and one for InputDispatcher.

The InputReader gets the event from EventHub by getEvent() in EventHub. Then, it processes them and sends these cooked events to the InputDispatcherQueue maintained by InputDispatcher.

Then, InputDispatcher dispatches these events to the targets.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.