GOL_MSG Structure

Microchip Graphics Library

Microchip Graphics Library
GOL_MSG Structure
C
typedef struct {
  BYTE type;
  BYTE uiEvent;
  SHORT param1;
  SHORT param2;
} GOL_MSG;
Overview

This structure defines the GOL message used in the library.

  • The types must be one of the INPUT_DEVICE_TYPE:
    • TYPE_UNKNOWN
    • TYPE_KEYBOARD
    • TYPE_TOUCHSCREEN
    • TYPE_MOUSE
  • uiEvent must be one of the INPUT_DEVICE_EVENT.
    • for touch screen:
      • EVENT_INVALID
      • EVENT_MOVE
      • EVENT_PRESS
      • EVENT_STILLPRESS
      • EVENT_RELEASE
    • for keyboard:
      • EVENT_KEYSCAN (param2 contains scan code)
      • EVENT_KEYCODE (param2 contains character code)
  • param1:
    • for touch screen is the x position
    • for keyboard ID of object receiving the message
  • param2
    • for touch screen y position
    • for keyboard scan or key code

Members
Members 
Description 
BYTE type; 
Type of input device. 
BYTE uiEvent; 
The generic events for input device. 
SHORT param1; 
Parameter 1 meaning is dependent on the type of input device. 
SHORT param2; 
Parameter 2 meaning is dependent on the type of input device. 
Microchip Graphics Library Version 3.06.02 - October 15, 2012
Copyright © 2012 Microchip Technology, Inc.  All rights reserved