00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #include "IEventQueue.h"
00016
00017
00018
00019
00020
00021 static int g_systemTarget = 0;
00022 IEventQueue* IEventQueue::s_instance = NULL;
00023
00024 void*
00025 IEventQueue::getSystemTarget()
00026 {
00027
00028 return &g_systemTarget;
00029 }
00030
00031 IEventQueue*
00032 IEventQueue::getInstance()
00033 {
00034 assert(s_instance != NULL);
00035 return s_instance;
00036 }
00037
00038 void
00039 IEventQueue::setInstance(IEventQueue* instance)
00040 {
00041 assert(s_instance == NULL || instance == NULL);
00042 s_instance = instance;
00043 }