How android translate kernel input eve nts to userland input eventsé”›

by ZaichengQi » Fri, 23 Oct 2009 11:38:44 GMT


Sponsored Links
 If I paste on the wrong group, please warn me.

Hello now learning how android handles linux input events from
kernel raw input events to the userland level KeyEvent and so on. And
I want to handle input events in native language. I've do some
experiments on handling events using NDK but the touch screen events
are very hard to handle(when I touch the screen, It generates a lot
of
kernel events).

I've read the eventhub class in framework base dir in the android
source repo. And I now I know how android collects linux kernel raw
events using eventhub class by reading from /dev/input/event* , but I
still have no idea how it translates these raw events into the
userland logic input events like KeyEvent. The file keyinput service
only wrappers eventhub to JNI functions but there are no translation.

So please give me some hints on the kernel event and userland event
translation process.

Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Maven and Android

Hi all,

Is there any documentation out there that shows examples on how to start
Android projects with Maven?

I like Eclipse to develop and debug but I like to use Maven to create the
project and control which jars are on the repository and need to be fetched
from the Internet.

Any suggestions on this?

Thanks.

-- 

2. Using the native predictive text dictionary?

I'm attempting to create an input method, and I'd like to use the
predictive-text library that the LatinIME uses. Unfortunately, it
looks like that's stored in its own resource area ("R.raw.main"). Is
there a way for other code to hook into that? I'd assume not, but just
in case, I figured I'd ask.

Thanks for any help y'all can provide...

-- 

3. Closed Apk LWP ikan koi

4. Emulator Unable to Access Location

5. Application Menu

6. onPreferenceChangeListener question

7. how to startup the emulator with landscape orientation instead of portrait