For button events, call mdevices [I]-> layoutmap-> map for ing. The Keying is actually completed by keylayoutmap: map. The configuration file Qwerty. KL is read in the keylayoutmap class, and the key-value ing relationship is determined by the configuration file Qwerty. KL. You can modify the key-value ing relationship by modifying./development/emulator/keymaps/Qwerty. KL.JNI Functions
In the frameworks/base/services/JNI/com_android_server_keyinputqueue.cpp file, the android_server_keyinputqueue
(wrong size: %d)", res); } continue; } } } }...}
For button events, call mdevices [I]-> layoutmap-> map for ing. The Keying is actually completed by keylayoutmap: map. The configuration file Qwerty. KL is read in the keylayoutmap class, and the key-value ing relationship is determined by the configuration file Qwerty. KL. You can change the key-value ing relationship by modifying./development
Http://www.cnblogs.com/andtt/articles/2145563.htmlFor keystroke events, call Mdevices[i]->layoutmap->map to map. The mapping is actually done by Keylayoutmap::map, the Keylayoutmap class reads the configuration file Qwerty.kl, and the configuration file QWERTY.KL determines the mapping of the key value. You can change the mapping of the key values by modifying the./development/emulator/keymaps/qwerty.kl.JNI functionIn the Frameworks/base/services/jni/com_android_server_keyinputqueue.cpp file, a
reads the configuration file Qwerty.kl, which determines the mapping relationship between the key values by the profile qwerty.kl. You can change the mapping of the key values by modifying the./development/emulator/keymaps/qwerty.kl.
JNI functions
In the Frameworks/base/services/jni/com_android_server_keyinputqueue.cpp file, a function is provided to Java Android_server_keyinputqueue_ Readevent, which is used to read input device events.
static Jboolean Android_server_keyinputqueue_reade
the keyinputqueue class, the anonymous internal class thread ("inputdevicereader") is started. The thread reads the driver event and places it in the message queue. The specific implementation is:
Thread mthread = new thread ("inputdevicereader "){
Public void run (){
Rawinputevent EV = new rawinputevent ();
While (true ){
Inputdevice di;
Readevent (EV );
}
}
This thread continues to run and runs cyclically through readevent (); this function is a native method. The speci
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.