input.cpp Function That Has The Error
void Input::isKeyPressed()
{
if ( sf::Keyboard::isKeyPressed ( sf::Keyboard::S ) )
{
// Here's The Error
*Input::playerOne.move(0.0 , 1.0);
}
}
More Details
This function is the implementation of the class Input and the class has a private variable for a pointer to the sf::RectangleShape in the int main() of the program.
I am trying to access that instantiation of sf::RectangleShape in order to move the object down on the screen. I don't want to create a global variables class just to make this work. I just want to be able to access that method for that specific object.