beautypg.com

Rockwell Automation 2711P Software Development Kit User Manual User Manual

Page 21

background image

Publication 2711P-UM005A-EN-P - March 2007

Introduction to the PanelView Plus CE Terminal 21

The Display Module keypad is supported by two separate software
components: a keypad driver, and a keypad handler.

Keypad Driver

The keypad driver supports low-level functions associated with
standard keyboards (for example, generation of auto-repeat
sequences and mappings of scan codes to Windows virtual key codes)
and a number of Rockwell proprietary features.

• Support for multiple types of keypads. Different keypads may

have different scan code to virtual key mappings.

• Support for non-standard keys, for example, the programmable

function K keys and the ALT-arrows keys for Home, End
PageUp and PageDown.

• Support for mapping single key presses into multiple key

macros at the virtual key level.

Drivers for the Keyboard/Keypad/Touchscreen

Driver

Description

touch.dll

kbdmouse.dll

Loaded by GWES.EXE at startup. Responsible for low level
Keyboard/keypad related items and scan code to virtual key
mappings for the keyboard. Responsible for default virtual key to
virtual key mappings based on modifier keys and for virtual key
mappings, for both key input devices.

USBHID.dll

mouhid.dll

kbdhid.dll

USB Human Interface Device drivers, loaded by DEVICE.EXE upon
insertion/existence of a USB Human Interface Device. Handles USB
keyboard and mouse. Responsible for low-level USB related items
and scan code to virtual key mappings for USB keyboard. Submits
virtual key codes to Keybddrv.dll.

keypad.dll

PanelView Plus CE specific keypad driver that is loaded by
DEVICE.EXE at startup. Handles low-level keypad input and scan
code to virtual key mapping. Submits virtual keys to Rockwell
supplied keypad handler for mapping and submits virtual keys to
Keybddrv.dll for virtual key mappings.

khstub.dll

Keypad handler stub. This driver DLL is loaded by keypad.dll if no
Rockwell supplied keypad handler is present. The stub returns a
default scan code to virtual key mapping table for the current keypad
and defers virtual key mapping to the Keybddrv.dll

\storage card\kh.dll Rockwell supplied keypad handler, loaded by keypad.dll. Responsible

for mapping virtual keys from the keypad into other virtual keys,
macros, or other actions. Virtual keys returned by the keypad
handler’s mappings use Keybddrv.dll for mapping virtual keys. The
name of this file may be overridden with an alternate keypad handler
name via a registry key. If key
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Keypad] contains a REG_SZ
value named KeypadHandlerName, its value will instead be used
when loading the keypad handler.