Renamed to Project Engine
This commit is contained in:
0
events/event.cpp
Normal file → Executable file
0
events/event.cpp
Normal file → Executable file
4
events/event.h
Normal file → Executable file
4
events/event.h
Normal file → Executable file
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "terminal.h"
|
||||
#include "engine.h"
|
||||
|
||||
enum class EventType {
|
||||
None = 0,
|
||||
@@ -17,4 +17,4 @@ class Event {
|
||||
|
||||
virtual EventType getType() const = 0;
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
0
events/eventHandler.cpp
Normal file → Executable file
0
events/eventHandler.cpp
Normal file → Executable file
4
events/eventHandler.h
Normal file → Executable file
4
events/eventHandler.h
Normal file → Executable file
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "terminal.h"
|
||||
#include "engine.h"
|
||||
|
||||
#include "event.h"
|
||||
|
||||
@@ -11,4 +11,4 @@ class EventHandler {
|
||||
EventHandler();
|
||||
|
||||
bool handleEvent(const Event*, Layer*);
|
||||
};
|
||||
};
|
||||
|
||||
0
events/keyEvent.cpp
Normal file → Executable file
0
events/keyEvent.cpp
Normal file → Executable file
4
events/keyEvent.h
Normal file → Executable file
4
events/keyEvent.h
Normal file → Executable file
@@ -1,4 +1,4 @@
|
||||
#include "terminal.h"
|
||||
#include "engine.h"
|
||||
#include "event.h"
|
||||
|
||||
class KeyEvent : public Event {
|
||||
@@ -25,4 +25,4 @@ class KeyTypedEvent : public Event {
|
||||
inline int getWindowID() const { return windowID; }
|
||||
inline const char* getText() const { return text.c_str(); }
|
||||
EventType getType() const { return EventType::KeyTyped; }
|
||||
};
|
||||
};
|
||||
|
||||
0
events/mouseEvent.cpp
Normal file → Executable file
0
events/mouseEvent.cpp
Normal file → Executable file
4
events/mouseEvent.h
Normal file → Executable file
4
events/mouseEvent.h
Normal file → Executable file
@@ -1,4 +1,4 @@
|
||||
#include "terminal.h"
|
||||
#include "engine.h"
|
||||
#include "event.h"
|
||||
|
||||
class MouseButtonEvent : public Event {
|
||||
@@ -30,4 +30,4 @@ class MouseScrolledEvent : public Event {
|
||||
inline int getX() const { return x; }
|
||||
inline int getY() const { return y; }
|
||||
EventType getType() const { return EventType::MouseScrolled; }
|
||||
};
|
||||
};
|
||||
|
||||
0
events/windowEvent.cpp
Normal file → Executable file
0
events/windowEvent.cpp
Normal file → Executable file
4
events/windowEvent.h
Normal file → Executable file
4
events/windowEvent.h
Normal file → Executable file
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "terminal.h"
|
||||
#include "engine.h"
|
||||
#include "event.h"
|
||||
|
||||
|
||||
@@ -24,4 +24,4 @@ class WindowEvent : public Event {
|
||||
}
|
||||
return EventType::None;
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user