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.
Name |
Description |
Input devices macros that defines the messages that Objects will process. The following definitions indicate the usage of the different input devices:
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:
Define in GraphicsConfig.h |