-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEventHandler.cpp
More file actions
41 lines (37 loc) · 761 Bytes
/
Copy pathEventHandler.cpp
File metadata and controls
41 lines (37 loc) · 761 Bytes
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
#include "EventHandler.h"
#include <vector>
EventHandler::EventHandler(void)
{
}
void EventHandler::operator+=(Delegate p)
{
///*switch(p.first)
//{
//case EventType::onKeyDown:
// keyDownPtr.push_back(p.second);
//break;
//case EventType::onKeyUp:
// keyUpPtr.push_back(p.second);
//break;
//case EventType::onMouseDown:
// mouseDownPtr.push_back(p.second);
//break;
//case EventType::onMouseUp:
// mouseUpPtr.push_back(p.second);
//break;
//case EventType::onTimeInterrupt:
// timeUpPtr.push_back(p.second);
//break;
//case EventType::onMouseClicked:
// this->mouseClicked = p.second;
//break;*/
//}
this->handlers.push_back(p);
}
bool EventHandler::spreadEvent(SDL_Event e)
{
return false;
}
EventHandler::~EventHandler(void)
{
}