Original Post
I'm using SFML and created a Input class for my game. I created a reference to sf::Input as one of the members of my class. But it kept complaining and told me that there is no appropriate default constructor and I solved the problem (it made me)by making my own constructor and initialize the reference to sf::Input in the constructor. But now I can't acess the member anymore.(grr) thus it's useless. How can I fix this? btw, how can I acess members of the mouse struct?
class CInput
{
public:
CInput(sf::RenderWindow& app)
{
const sf::Input &User_input = app.GetInput();
};
private:
struct mouse
{
int mouse_x;
int mouse_y;
bool lmb;
bool rmb;
};
};
CInput Input(Game.App);