Motorola SYMBOL MINISCAN MSXX04 Guía de usuario Pagina 63

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 278
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 62
Chapter 7: Keyboard and Keyboard Remapping
Keyboard Remapping
51
Psion Mobile Devices Developers Guide
7.1.3 Getting Started with Keyboards
For articles on Ingenuity Working that will guide you in getting started with working with keyboards see:
community.psion.com/tags/keyboard/noteDG
7.1.4 Code Samples for Keyboards
For postings on Ingenuity Working that contain code samples that use keyboards see:
community.psion.com/tags/keyboard/codeDG
7.1.5 Keyboard API Elements
C++: The display on all Psion computers is controlled using the PsionTeklogix::Keyboard namespace.
Java: The display on all Psion computers is controlled using the com.teklogix.keyboard package.
.NET: The display on all Psion computers is controlled using the PsionTeklogix.Keyboard namespace.
7.2 Keyboard Remapping
The key stroke information sent to an application when a key is pressed can be altered through a process of
remapping key code values. There are two sets of key codes — scan codes and virtual key codes — which
define the associations between a physical key pressed, and the key value that is sent to an application. The
default associations of these key code sets characterize the normal behaviour of a particular keyboard.
Keyboard remapping overrides the default behaviour of the keyboard keys.
Scan codes
A scan code is an integer value representing a key on a keyboard. Scan codes are keyboard dependent.
All Psion computers have non-chorded keyboards. A non-chorded keyboard is a keyboard that does not
handle simultaneous key presses. Each key pressed generates a unique scan code which is not modified by
the state of other keys on the keyboard.
Modifier keys
Modifier keys are keys that when pressed and released set a mode that can change the behaviour of other
keys on the keyboard. The following keys are modifier keys: BLUE, ORANGE, SYM, ALT, CTRL, and SHIFT.
These can change the virtual key code value generated by a subsequent scan code.
Virtual key codes
A virtual key code is a device-independent value defined by the keyboard driver. Virtual key codes are
passed to applications. Scan codes are mapped to virtual key codes by the keyboard driver. A single scan
code can map to multiple virtual key codes, dependent on the current state of the modifier keys.
Some characters do not have virtual key codes, but can be generated using shifted-key codes. For example,
a + character is actually generated by sending a shifted = virtual key code (that is, the scan code is mapped
to VK_EQUAL and the function Function.SendShiftedCode). These mappings can be inferred from a
standard PC keyboard.
For a list of Windows CE virtual key codes see msdn.microsoft.com/en-us/library/aa926323.aspx.
For a list of Windows Mobile virtual key codes see msdn.microsoft.com/en-us/library/bb431750.aspx.
Mapping tables
The mapping between the scan codes and the virtual key codes is defined in a set of tables. There are sepa-
rate tables to define the code mappings for normal operation, and for when the SHIFT, ORANGE/ SYM or
BLUE modifiers are active. The ORANGE and BLUE tables can be remapped, the SHIFT table cannot
be remapped.
There are no mapping tables for the CTRL and ALT modifier keys, so these do not change the virtual key
code generated. On receiving a virtual key code, an application can detect the state of these modifiers, and
change its behaviour accordingly.
If two threads or processes attempt to modify the keyboard scan code mappings at the same time, the
results are undefined.
Vista de pagina 62
1 2 ... 58 59 60 61 62 63 64 65 66 67 68 ... 277 278

Comentarios a estos manuales

Sin comentarios