Singletonejada la classe Input

This commit is contained in:
2024-09-28 14:19:00 +02:00
parent fa82758ce1
commit 2767696a3f
19 changed files with 87 additions and 44 deletions

View File

@@ -4,11 +4,11 @@
#include <iostream>
// Constructor
Instructions::Instructions(Input *input, JA_Music_t *music)
Instructions::Instructions(JA_Music_t *music)
{
// Copia los punteros
this->input = input;
this->music = music;
input = Input::get();
screen = Screen::get();
asset = Asset::get();
renderer = screen->getRenderer();