GLG Toolkit, JavaScript Library  Version 4.1
 All Classes Namespaces Functions Variables Enumerations Enumerator
GlgInputListener Class Reference

Detailed Description

GlgInputListener is an object used by the GlgObject::AddListener method to attach listeners of the INPUT_CB type (defined in the GlgCallbackType enum).

These listeners are invoked on any user interaction with GLG input objects.

The object's InputCallback method defines the type signature of the function that needs to be passed as a parameter of the GlgObject::AddListener method to add an input listener.

Public Member Functions

void InputCallback (GlgObject glg_object, GlgObject message)
 

Member Function Documentation

void InputCallback ( GlgObject  glg_object,
GlgObject  message 
)

Input handler method.

This method is invoked on any user interaction with GLG input objects.

Parameters
glg_objectTop-level viewport object of the input listener.
messageMessage object containing input event information. Use GetResource methods to extract detailed event information.