Input
This commit is contained in:
1 parent
a896b772fb
commit
90c3b6149e
16 files changed
+469
-74
No files matched your search
@@ -7,11 +7,12 @@
|
||||
#include "time/Time.hpp"
|
||||
#include "console/Console.hpp"
|
||||
#include "display/Display.hpp"
|
||||
#include "input/Input.hpp"
|
||||
|
||||
namespace Dawn {
|
||||
struct Engine {
|
||||
private:
|
||||
static std::shared_ptr<Engine> instance;
|
||||
static Engine* instance;
|
||||
|
||||
bool_t exitRequested = false;
|
||||
|
||||
@@ -19,13 +20,7 @@ namespace Dawn {
|
||||
Time time;
|
||||
Console console;
|
||||
Display display;
|
||||
|
||||
/**
|
||||
* Get the singleton instance of the engine.
|
||||
*
|
||||
* @return A shared pointer to the engine instance.
|
||||
*/
|
||||
static std::shared_ptr<Engine> getInstance();
|
||||
Input input;
|
||||
|
||||
/**
|
||||
* Constructor for the Dawn engine.
|
||||
|
||||
Reference in new issue
Block a user