aboutsummaryrefslogtreecommitdiff
path: root/src/example
diff options
context:
space:
mode:
Diffstat (limited to 'src/example')
-rw-r--r--src/example/events.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/example/events.cpp b/src/example/events.cpp
index ff97cf1..af6f294 100644
--- a/src/example/events.cpp
+++ b/src/example/events.cpp
@@ -9,13 +9,14 @@
#include <crepe/api/GameObject.h>
#include <crepe/api/Script.h>
#include <crepe/api/Transform.h>
-
#include "crepe/api/Event.h"
#include "crepe/api/EventManager.h"
#include "crepe/api/IKeyListener.h"
#include "crepe/api/IMouseListener.h"
+
using namespace crepe;
using namespace std;
+
class MyScript : public Script, public IKeyListener,public IMouseListener{
void update() {
// Retrieve component from the same GameObject this script is on