Operation Manual
Programming—Chapter 7
225700 Series Color Mobile Computer User’s Manual
Each registry key is just an array that describes to the keypad driver what
value needs to be passed f or each physical key. The key values are indexed
by the scan code, this is a zero-based index. For example in the unshifted
plane, the [4] key has a scan code of 0x 06. This means that the seventh
word under the “Vkey” registry key will have the value for the [4] key.
Taking a sample of the “Vkey” registry key shows the following values:
00,00,0B,05,02,03,C1,07,04,03,BE,00,34,00,00,00,. . .
The value is 34,00. The values are in reverse byte order as that is the way
the processor handles data. When writing an application, nothing needs to
be done to swap the bytes, as this will happen automatically when the data
is read into a byte value. This is something you just need to be aware of
when looking at the registry. Knowing this, we can see that the value that
the keypad driver will pass to the system is a hex 34. Looking that u p on
an UNICODE character chart, we see that it maps to a “4”. If you wanted
the key, labeled “4”, to output the letter “A” instead, you would need to
change the seventh word to “41” (the hexadecimal representation of “A”
from the UNICODE chart), then put the key back into the registry.
If you wish to disable a certain key, remap its scan code to 0x00.
Note: Do not remap scan codes 0x01, 0x41, 0x42, 0x43, 0x44. Doing so
could make your 700 Color Computer unusable until you do a cold-boot.
Change Notification
Changing registry keys does not immediately change key mappings. To
notify the keypad driver the registry is updated, use the CreateEvent() API
to signal the “ITC_KEYBOARD_CHANGE” named event.
Advanced Keypad Remapping
It is also possible to map multiple key presses to one button and to map
named system events to a button. The multiple key press option could be
useful to cut down on the number of keys needed to press in a given situa-
tion or to remap which key behaves like the action key. Mapping events to
a button could be useful to change which buttons will fire the scanner,
control volume, and allow f or suspending and resuming the device. Con-
tact Intermec Technical Support for more information.