Input Device Selection

Microchip Graphics Library

Microchip Graphics Library
Input Device Selection

The Graphics Library comes with two pre-defined user interface. These are the:

  • Keyboard interface
  • Touchscreen interface

Enabling one or both requires the declaration of the compile switch macros in the GraphicsConfig.h file. 

GOL widgets which supports the enabled input device's messages will respond to the user inputs. 

For Example: 

When using Button Widget. 

#define USE_TOUCHSCREEN - will enable the buttons response to user touch on the button widget. The button will automatically be drawn with a pressed state when pressed and release state when user removes the touch on the screen. 

 

The compile option selects the input devices used by GOL widgets. Remove or comment out the macro declarations for unused input devices to reduce code size.

Macros
Name 
Description 
Input devices macros that defines the messages that Objects will process. The following definitions indicate the usage of the different input devices:
  • USE_TOUCHSCREEN - enables the touch screen support.
  • USE_KEYBOARD - enables the key board support.

Define in GraphicsConfig.h 

Input devices macros that defines the messages that Objects will process. The following definitions indicate the usage of the different input devices:
  • USE_TOUCHSCREEN - enables the touch screen support.
  • USE_KEYBOARD - enables the key board support.

Define in GraphicsConfig.h 

Links
Microchip Graphics Library Version 3.06.02 - October 15, 2012
Copyright © 2012 Microchip Technology, Inc.  All rights reserved