HEventListener.h File Reference
#include "HTools.h"
#include "HEventInfo.h"
#include "HDB.h"

Go to the source code of this file.

Classes

class  HEventListener
 The HEventListener class is the base class for all event types. More...
 
class  HEventListenerManager
 The HEventListenerManager class is used to dispatch event for a specific type. More...
 

Macros

#define HLISTENER_CONSUME_EVENT   999
 
#define HLISTENER_PASS_EVENT   0
 
#define HLISTENER_PRIORITY_HIGH   10
 
#define HLISTENER_PRIORITY_LOW   0
 
#define HLISTENER_PRIORITY_NORMAL   5
 

Enumerations

enum  HEventListenerType {
  HUserdefinerListenerType, HUpdateListenerType, HMouseListenerType, HAnimationListenerType,
  HSensorListenerType, HFitWorldListenerType, HObjectManipulationListenerType, HJoyStickListenerType
}
 

Detailed Description

Base class for event listening.

Enumeration Type Documentation

◆ HEventListenerType

Defines Event Listener Types

Enumerator
HUserdefinerListenerType 

self-explanatory

HUpdateListenerType 

Listens for update events like camera changed or view destroyed.

HMouseListenerType 

Listens for mouse events like mouse moves and double clicks.

HAnimationListenerType 

Listens for animation events like when key frames are added or when objects collide.

HSensorListenerType 

Listens when sensors are activated.

HFitWorldListenerType 

Listens for when fit world event will happen.

HObjectManipulationListenerType 

Listens for object manipulation events like when objects are moved or scaled.

HJoyStickListenerType 

Listens for 3DMouse/Joystick translation and rotation events.