|
PegX Input DevicesPointing Devices
PegX includes complete support for mouse, joystick, and/or touch screen input. This includes drawing various pointer bitmaps or using hardware cursor capabilities. Complete mouse input drivers and touch screen input drivers are provided for each of the reference platforms. All pointer input functionality can also be removed from the library simply by turning off a library configuration flag prior to compiling the library. When operating with a touch screen, PegX can be configured to eliminate drawing of the mouse pointer and can also be configured not to highlight the object that has input focus. These options further reduce code size and drawing overhead when running with touch screen input. When running with a touch screen PegX also eliminates the need for “pointer move” messages and thus all operations and controls work normally with only touch and release input messages. This feature simplifies touch screen input driver development. Keyboard/KeypadFull keyboard support is optionally included in the PegX library. This includes all handling required for keyboard navigation through menus, windows, and dialogs. Keyboard support may range from a full QWERTY keyboard to a small set of user-defined membrane keys. Full navigation and operation can be accomplished with as few as three unique input keys. Soft Keys Using soft keys, i.e. membrane keys placed at the
perimeter of the display screen, is also supported. When using soft
keys, the system programmer configures PegX to operate as with a
touch screen, and sends to PegX touch-screen click messages corresponding
to the screen position adjacent to each membrane key. In this way
PegX is ‘fooled’ into working as if a normal mouse or
touch screen were present. Many other types of input devices can
also be used by following a similar approach. |

