[android-developers] Re: How android translate kernel input events to userland input events?

2009-10-22 Thread Dianne Hackborn
You can't handle input events in native code, the framework takes care of that and you will break things if you fight with it (and can't anyway because you shouldn't have permission to open the driver). You can look at EventHub.cpp and KeyInputQueue.java to see how the framework transforms the raw

[android-developers] Re: How android translate kernel input events to userland input events?

2009-10-22 Thread ZaichengQi
Thanks for your help. I know that I can get root privilege only on my dev phone, and I will not try to really handle these events by myself. On Oct 23, 11:55 am, Dianne Hackborn hack...@android.com wrote: You can't handle input events in native code, the framework takes care of that and you