summaryrefslogtreecommitdiffstats
path: root/data/keyboards/Generic.kl
Commit message (Collapse)AuthorAgeFilesLines
* Map KEY_VOICECOMMAND to KEYCODE_VOICE_ASSISTMichael Wright2014-09-051-0/+1
| | | | | | | This is to simplify Project Watson requirements and enable USB Audio to easily implement similar functionality to the Watson headsets. Change-Id: Idd0a0cd6c6ba4a977090fb338d9241046f0380e6
* am e8628797: am 09446329: am 52025796: Merge "Map KEY_APPSELECT to APP_SWITCH."Michael Wright2014-05-021-0/+2
|\ | | | | | | | | * commit 'e8628797833dfab1319d7a17f9ff465de760c633': Map KEY_APPSELECT to APP_SWITCH.
| * am 09446329: am 52025796: Merge "Map KEY_APPSELECT to APP_SWITCH."Michael Wright2014-05-021-0/+2
| |\ | | | | | | | | | | | | * commit '09446329b1afbbc8b56885e61ed66841b59532b2': Map KEY_APPSELECT to APP_SWITCH.
| | * Map KEY_APPSELECT to APP_SWITCH.Olivier Gay2014-05-011-0/+2
| | | | | | | | | | | | | | | | | | Change-Id: Iec801f2edfec9923aac088cb66663f64d62b3df6 Signed-off-by: Olivier Gay <ogay@logitech.com> Signed-off-by: Mathieu Meisser <mmeisser@logitech.com>
| * | Utilize new Android LED constants. DO NOT MERGEMichael Wright2014-03-111-0/+13
| | | | | | | | | | | | | | | | | | Also, have EventHub manage game controllers' player LEDs Change-Id: Ic7dba19ad236a3c7d1aff5d3f938bd239b98d51d
* | | Move key attribute information into KeyEvent.Michael Wright2014-04-281-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This consolidates all of the information that was in the native KeyEvent and the KeyLayout files into the managed KeyEvent class. It also moves the definition for all of the key names to the native side, rather than having them in both places. Change-Id: I172e3b554e7eb52c79ae2ec406ef4332e8b25ffa
* | | am 9e3de5f7: am 6f9f8e7a: am 01b5e765: Merge "Declare KEYCODE_SLEEP and ↵Jeff Brown2014-03-081-2/+2
|\ \ \ | |/ / | | | | | | | | | | | | | | | KEYCODE_WAKEUP." into klp-modular-dev * commit '9e3de5f70d77f7152b25fec6c27b73d037c1376d': Declare KEYCODE_SLEEP and KEYCODE_WAKEUP.
| * | Declare KEYCODE_SLEEP and KEYCODE_WAKEUP.Jeff Brown2014-03-071-2/+2
| |/ | | | | | | | | | | | | | | | | | | | | These new keys behave in similarly to KEYCODE_POWER but do not simply toggle between awake and asleep states. Sleep puts the device to sleep if it is awake. Wakeup wakes up the device if it is asleep. Bug: 12938999 Change-Id: I260fb918cc858882fe06fa880910df5763a76c5d
* | Utilize new Android LED constantsMichael Wright2013-10-181-0/+13
|/ | | | | | Also, have EventHub manage game controllers' player LEDs Change-Id: Ic0a1515979d72a30d182d51d89ca6753c5bd7bf8
* Add initial plumbing for brightness keysMichael Wright2013-02-011-2/+5
| | | | Change-Id: I595e8a25e6c245e4b22f06df9a8acdbb75e4b041
* Map KEY_SELECT to DPAD_CENTER.Jeff Brown2012-04-251-1/+1
| | | | Change-Id: If387be6b233db2222347e39e9edb3ad886e936a3
* Add Japanese specific key codes.Yang Chuang2012-04-021-8/+8
| | | | | | | | | These keys are specific to Japanese hardware keyboard which can be used by input method. Patch ported from AOSP, with the addition of EISU and KANA mappings. Change-Id: I647473cdd257458e3b9d134b0fc623eae946c3e0
* Fix application launch shortcuts.Jeff Brown2011-11-291-4/+5
| | | | | | | | | | | | | | | | | Improved quick launch bookmarks to support category-based shortcuts instead of hardcoding package and class names for all apps. Added a set of Intent categories for typical applications on the platform. Added support for some of the HID application launch usages to reduce reliance on quick launch for special purpose keys. Some keyboard vendors have hardcoded launch keys that synthesize "Search + X" type key combos. The goal is to encourage them to stop doing this by implementing more of HID. Bug: 5674723 Change-Id: I79f1147c65a208efc3f67228c9f0fa5cd050c593
* Update keymaps.Jeff Brown2011-08-101-18/+4
| | | | | | | | | | | Bug: 5069142 Add some additional mappings for the POWER key to support more standard HID devices. Remove some non-standard mappings that don't make sense anymore. Change-Id: Ie95a72c60d4dc4bfb3c90f6f3b343365f8e76685
* Joystick tweaks.Jeff Brown2011-03-041-1/+5
| | | | | | | | | | | | | | | | | | Ensure that the joystick can always reach -1.0, 0.0 and 1.0 positions even when noise filtering is applied. (Bug: 3514510) Add support for a few more standard axes. Add additional mapping modes for axes. Some axes are inverted from standard interpretation or are actually intended to be split into two distict axes such as left/right trigger controls or accelerator/brake. Add key layout file for a G25 racing wheel and XBox 360 controller to tweak behavior. They work fine without them but the axis mappings are not ideal. Change-Id: Id4c86a0a272331c680039a9bde6815bb7eba44ab
* Recognize 3D joysticks.Jeff Brown2011-03-031-0/+17
| | | | Change-Id: Ie4eae09c0334f69c2ccfcf7eaede075f9ba02eab
* Add new axes for joysticks and mouse wheels.Jeff Brown2011-02-191-1/+13
| | | | | | | | | | | | | | | | | | Added API on InputDevice to query the set of axes available. Added API on KeyEvent and MotionEvent to convert keycodes and axes to symbolic name strings for diagnostic purposes. Added API on KeyEvent to query if a given key code is a gamepad button. Added a new "axis" element to key layout files to specify the mapping between raw absolute axis values and motion axis ids. Expanded the axis bitfield to 64bits to allow for future growth. Modified the Makefile for keyboard prebuilts to run the keymap validation tool during the build. Added layouts for two game controllers. Added default actions for game pad button keys. Added more tests. Fixed a bunch of bugs. Change-Id: I73f9166c3b3c5bcf4970845b58088ad467525525
* Add joystick support to framework.Jeff Brown2011-01-171-0/+18
| | | | Change-Id: I95374436708752e1a9cff3f85c5b9bc3e0987961
* Tweak key layouts.Jeff Brown2010-11-251-6/+6
| | | | Change-Id: I19777ec4e5d0a5485cfe2a44a15e2b0680557d08
* Add plumbing for volume mute key.Jeff Brown2010-11-021-1/+1
| | | | | | | | Full support for the volume mute key will be implemented in a later change. Bug: 2912307 Change-Id: I98c27d6360f159c8b7447e04b45f442eff87b38a
* Add keycodes and meta-key modifiers to support external keyboards.Jeff Brown2010-10-151-0/+384
Added new key maps for external keyboards. These maps are intended to be shared across devices by inheriting the "keyboards.mk" product makefile as part of the device's product definition. One of the trickier changes here was to unwind some code in MetaKeyKeyListener that assumed that only the low 8 bits of the meta key state were actually used. The new code abandons bitshifts in favor of simple conditionals that are probably easier to read anyways. The special meta key state constants used by MetaKeyKeyListener are now (@hide) defined in KeyEvent now so as to make it clearer that they share the same code space even if those codes are not valid for KeyEvents. The EventHub now takes care of detecting the appropriate key layout map and key character map when the device is added and sets system properties accordingly. This avoids having duplicate code in KeyCharacterMap to probe for the appropriate key character map although the current probing mechanism has been preserved for legacy reasons just in case. Added support for tracking caps lock, num lock and scroll lock and turning their corresponding LEDs on and off as needed. The key character map format will need to be updated to correctly support PC style external keyboard semantics related to modifier keys. That will come in a later change so caps lock doesn't actually do anything right now except turn the shiny LEDs on and off... Added a list of symbolic key names to KeyEvent and improved the toString() output for debug diagnosis. Having this list in a central place in the framework also allows us to remove it from Monkey so there is one less thing to maintain when we add new keycodes. Bug: 2912307 Change-Id: If8c25e8d50a7c29bbf5d663c94284f5f86de5da4