0
0
mirror of https://github.com/Nimac0/SDL_Minigame synced 2026-01-12 13:43:41 +00:00

mod: added InputManager to GameInternal

This commit is contained in:
ezveee 2025-01-16 12:17:11 +01:00
parent 873f85d1d2
commit 82eeb53eb1
2 changed files with 4 additions and 1 deletions

View File

@ -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;

View File

@ -33,6 +33,7 @@ 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)