Hello, I am currently writing a game engine, and I am thinking of switching to static variables for my input engine. At first, I would pass the input engine over to objects that need it, for example the Player. Every time I create a player, i would pass the input engine over to it, like this:
player1->inputEngine = inputEngine;
However, I found this to be very tedious, and have decided to instead make all the variables in the Input engine class static, so that i wont have to copy the reference over. Would you consider that to be a good idea? I have a feeling that this might be the same as using global variables, which I know is evil, but what other alternative do I have?