
Chapter 7 — Programming
CN2B Mobile Computer User’s Manual 187
Understanding Keypad Attributes
The keypad attributes are as follows.
• “OrangeObeyClear” = dword:0
• “OrangeOneShot” = dword:1
• “GreenObeyClear” = dword:0
• “GreenOneShot” = dword:0
• “MultimapTimeout” = dword:258 (see next section for a description)
When you press the Orange B key or Green C key, a timer starts and
will turn Orange or Green mode off after three seconds. To force Orange
or Green mode to stay active after the timer has expired (which is also called
“locking” the mode) you must set *ObeyClear to 0.
When you press a key in Orange or Green mode, the orange or green func-
tion for that key is produced and Orange or Green mode is turned off. To
force Orange or Green mode to stay active after a key has been pressed
(which is also called “locking” the mode) you must set *OneShot to 0.
Creating Multiple Key Definitions
In the case of multiple key definitions, the first byte is the number of possi-
ble keys (in words) that key physical key can cycle between. The second
byte must be 0x80 (this is what makes it a multi-key definition). The values
following should be two bytes for each possible key.
Multiple key definitions can also be used for FkeyCode and FkeyMeta
mappings. In multi-key mode, only one VK code can be emitted by the
key.
MultimapTimeout is the number of milliseconds you have to press the key
again before the current selection is emitted. The default is 258, which
equals 600ms (0.6 seconds).
To understand MultimapTimeout, consider the numeric keypad. When
you press the Green C key and the [2] key, you have selected the “a”
character. You have 0.6 seconds to press the [2] key again for “b.” If you do
Threshold crossed 0x42
Headset detected 0x43
Keypad Backlight 0x44
Ambient Light 0x44
Threshold Crossed 0x44
Keypad Scan Codes and Registry Entries (continued)
Press this Key Meaning Scan Code Registry Entry
Comentarios a estos manuales