mirror of
https://github.com/Nimac0/SDL_Minigame
synced 2026-01-12 07:53:43 +00:00
mod: added InputManager to GameInternal
This commit is contained in:
parent
873f85d1d2
commit
82eeb53eb1
@ -10,6 +10,7 @@
|
||||
#include "Manager.h"
|
||||
#include "Vector2D.h"
|
||||
#include "Entity.h"
|
||||
#include "InputManager.h"
|
||||
#include "RenderManager.h"
|
||||
|
||||
typedef std::function<void()> gamefunction;
|
||||
@ -43,6 +44,7 @@ public:
|
||||
/* static */ AssetManager* assets;
|
||||
/* static */ TextureManager* textureManager;
|
||||
/* static */ SoundManager* soundManager;
|
||||
/* static */ InputManager* inputs;
|
||||
|
||||
Manager manager;
|
||||
RenderManager renderManager;
|
||||
|
||||
@ -33,7 +33,8 @@ SDL_AppResult GameInternal::init(const char* title, int xpos, int ypos, int widt
|
||||
GameInternal::textureManager = new TextureManager(&manager);
|
||||
GameInternal::soundManager = new SoundManager();
|
||||
GameInternal::collisionHandler = new CollisionHandler(manager); // why does this use a referrence, but AssetManager a pointer?
|
||||
|
||||
GameInternal::inputs = new InputManager();
|
||||
|
||||
int flags = 0;
|
||||
if (fullscreen)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user