- Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathEvent.cpp
More file actions
Latest commit
26 lines (20 loc) · 446 Bytes
/
Copy pathEvent.cpp
File metadata and controls
26 lines (20 loc) · 446 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
//
// Created by hyperandroid on 02/02/2016.
//
#include"Event.h"
Event::Event( constchar* event ) : Wrappable(), target(nullptr), currentTarget(nullptr), timeStamp(0L) {
// naive
int len = strlen(event);
type = newchar[len+1];
type[len]= 0;
memcpy( type, event, len );
}
Event::~Event() {
delete type;
}
constchar* Event::Type() const {
return type;
}
longEvent::TimeStamp() const {
return timeStamp;
}