Intermec CK60 Manual do Utilizador Página 65

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
Vista de página 64
Chapter 3 — Configuring the Computer
CK60 Mobile Computer with Windows CE User’s Manual 51
Implementation
The CK60 keypad virtual key mappings are controlled by registry entries
read each time the keypad driver loads. You can “remap” the keypad after it
has loaded by modifying the registry entries and then sending a signal to
the keypad driver to re-read the registry mappings. The keypad driver uses
the scan code values returned by the keypad device as an index into these
registry entries to determine the virtual key value sent to the system.
Registry Entries
There are three main “shift plane” registry entries which map the keypad
device scancodes to the windows virtual key values. Each registry entry is an
array of 128 WORDs (2 byte unsigned int, little endian). Since scan codes
generated by the keypad device can range in value from 0x00 to 0x7f, the
driver uses the generated scan code value as an index into one of the shift
plane entries to determine the virtual key value sent up to the system.
The shift plane registry entry used is determined by the current state of the
Orange and Green keys. If the Orange key is held down, then the “Orange
shift plane” array is used. If the Green key is held down, then the “Green
shift plane” array is used. If neither Orange nor Green key is held down,
then the “Normal, unshifted plane” array is used.
The name of the three registry entries that define the Normal, Orange, and
Green shift planes are:
HKLM\HARDWARE\DEVICEMAP\KEYBD\xxxx\Vkey (Normal)
HKLM\HARDWARE\DEVICEMAP\KEYBD\xxxx\VkeyGold (Orange)
HKLM\HARDWARE\DEVICEMAP\KEYBD\xxxx\VkeyAlpha (Green)
Where xxxx is a four-digit keypad ID which identifies the type of keypad
on your CK60.
These are the registry entries (which are arrays of 128 WORDs) you need
to modify to remap your keypad.
Programming the Keypad
Do the following to change a single key on the CK60 keypad. You can
change more than one key, if desired.
1 Identify your keypad
Read the four bytes of text stored in the registry entry. For this example,
this value is referred to as <KPID>.
HKEY_LOCAL_MACHINE\Drivers\BuiltIn\KEYPAD\ActiveConfig
2 Read the shift plane mapping
Read each of these key values into a WORD array of size 128. Note that
not all keypads have entries for VkeyGold and VkeyAlpha.
HKLM\HARDWARE\DEVICEMAP\KEYBD\<KPID>\Vkey (Normal)
HKLM\HARDWARE\DEVICEMAP\KEYBD\<KPID>\VkeyGold (Orange)
HKLM\HARDWARE\DEVICEMAP\KEYBD\<KPID>\VkeyAlpha (Green)
Vista de página 64
1 2 ... 60 61 62 63 64 65 66 67 68 69 70 ... 123 124

Comentários a estes Manuais

Sem comentários