I’m creating a game with C++ and SFML, and i am writing an Input Manager to do stuff like hold a container with callback functions and load Bindings from a file. Is it a good idea to define the Input Manager as a Singleton or a Monostate class?
I am aware that the Singleton and the Monostate pattens have lots of problems like thread safety and difficult testing but it this case where the Input Manager would need to be shared across the program would it make sense and if not is there a better solution?