Handheld Scientific, Inc.Page 14 of 255. Key MappingKey mapping is such an important feature that it deserves its own section in this manual. Withkey mapping, every keyboard becomes programmable. The possibility is unlimited. Forinstance, you can set up a keypad as a media control center by mapping the keys to volume up,down, stop, play, etc.It is worth noting that the Adapter intercepts the USB reports from the keyboard to preform themapping. Therefore, it has some limitations as specified below. It can’t do arbitrary mapping likethe firmware in a keyboard can but the limitations have little impact on the usefulness of thisfeature.In a mapping, a map source is translated to a destination. When the map source key or keycombination is detected, the destination key or key combination is generated. The map sourcekey is “consumed” and will not be further processed. Based on their usage in key mapping, thekeys on a keyboard can be divided into 4 categories:• Regular keys. Those are the keys like a-z, 0-9, F1-F12, keypad keys, etc.• Modifier keys. There are 8 modifier keys: left shift (l_shift), left control (l_ctrl), left alt(l_alt), left com (l_com) and their right counterparts (r_shift, r_ctrl, r_alt and r_com). Thecom keys are also called the win keys.• Media keys: media keys are those like volume increase/decrease, pause, previous/next,browser, calculator, etc. Those keys are in the USB HID Usage Page 0xC. Currentlymedia keys can only be in map destinations.• Three lock keys: caps lock, num lock and scroll lock. Those usually have a LEDassociated with them. Due to their specialty, those keys can’t be in map source ordestination. They are excluded from key mappings.Depending on the map source and destination there are 3 types of mappings:1. A simple regular key is mapped to a regular key, a media key, a compound key or amacro.2. A modifier key is mapped to another modifier key.3. A compound key is mapped to a regular key, a media key, another compound key or amacro.Other types of mapping are not supported at this moment. For instance, you can only map amodifier key to another modifier key but not any other types of keys. Media key cannot be usedas map source.The first two types of mappings above are called Simple Mappings and the third one AdvancedMappings. They are discussed in detail in the next sections.5.1 Simple MappingsA simple mapping is one where the source key is a single key, either a simple key or a modifierkey. Simple mappings are implemented by efficient memory mapping algorithm so there is littleperformance impact. As a result, you can set up as many as you would like without performancepenalty.When mapping a modifier key, you will need to specify whether it is left key or right key. Forinstance, you need to use either l_ctrl or r_ctrl instead of just ctrl which is ambiguous.