Can the Android emulator capture a key-press event of the computer (running the emulator) keyboard, such as: direction key, backspace key and enter key? If it could do that, can you tell me the key code of the implentation? Thanks a lot.
Can the Android emulator capture a key-press event of the computer (running the emulator)
Share
The mapping between PC keyboard keys and devices keys is detailed here: http://developer.android.com/tools/help/emulator.html#KeyMapping
And you can respond to them using the keycodes that are listed here: http://developer.android.com/reference/android/view/KeyEvent.html
For instance:
}