Hello, I'm new to SFML and I have to say I love it. My problem is that I'm trying to make a game engine, and I'm separating the WindowManager and the InputManager in different classes. I have the one instance of sf::RenderWindow named MainWindow. Then, I'm making a WindowManager friends with InputManager to get the MainWindow, because it is private. But when I try to do this: sf::Input& MainInput = MainWindow.GetInput();
, MSVC++ says this: 'MainWindow' : undeclared identifier, left of '.GetInput' must have class/struct/union,
and a few other errors.
All help is greatly appreciated,
~Asian
PS. Sorry if I didn't include enough info, please tell me and I'll try to tell you more. Thanks again!