Chapter
7
—
Programming
Alpha (Blue) Plane
Key Values
How Key Values Are Stored in Registry
224
The alpha plane contains values from the keypad when the keypad has
been placed in alpha mode by pressing the blue alpha key, such as:
Press the Keys
Numeric Keypad
[Alpha] F
1
[Alpha] F
5
[Alpha] F
9
Key values are stored in the registry. All units ship with a default key
mapping in its registry. Applications to change the default mapping need
to read the appropriate key from the registry into an array of Words,
modify the values required and then write the updated values back into the
registry. The registry access can be done with standard Microsoft API calls,
such as RegOpenKeyEx(), RegQueryValueEx(), and RegSetValueEx().
Numeric Keypad
The following registry keys contain the plane mappings:
S The unshifted plane mapping can be found in the registry at:
HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\KEYBD\Vkey
S The gold plane mapping can be found in the registry at:
HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\KEYBD\VkeyGold
S The alpha plane mapping can be found in the registry at:
HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\KEYBD\VkeyAlpha
Alphanumeric Keypad
The following registry keys contain the plane mappings:
S The unshifted plane mapping can be found in the registry at:
HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\KEYBD\ALPHA\Vkey
S The gold plane mapping can be found in the registry at:
HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\KEYBD\ALPHA\VkeyGold
S The alpha plane mapping can be found in the registry at:
HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\KEYBD\ALPHA\VkeyAlpha
To know which fields to update in the registry, you must know what Scan
Codes are assigned to each physical key (see the "Keypad Scan Codes and
Meanings" table on the next page). The Scan Code is used at the lowest
level of the system to let the keypad driver know which physical key has
been pressed. The keypad driver takes that scan code and looks it up in a
table (a copy of the one stored in the registry) to determine which values
to pass on to the operating system.
Alphanumeric Keypad To Enter This
d g
[Alpha]
[Alpha]
d J
d W
[Alpha]
700 Series Color Mobile Computer User's Manual
Caps
j
w