blob: 495c869256070d7ec38beacb1e75e1c4e3ef903a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
#ifndef __ASURA_EQUEUE_H__
#define __ASURA_EQUEUE_H__
#include <asura-utils/type.h>
#include "event.h"
namespace AsuraEngine
{
namespace Input
{
class EQueueImpl;
///
/// Event queue.
///
class EQueue
{
public:
EQueue();
~EQueue();
bool Poll(const Event& e);
private:
EQueueImpl* mImpl;
};
ASURA_ABSTRACT class EQueueImpl
{
public:
EQueueImpl() {};
virtual ~EQueueImpl() {};
///
/// Ӳϵͳ¼óһءзtrue,ûзfalseص
/// װЩͬʵֵ¼ʹͳһתΪAsura event
///
virtual bool Poll(const Event&) = 0;
};
}
}
#endif
|