not a member of 'tagINPUT'
<p>I been following a tutorial word for word but i get an error which I couldn't get the answer solved from the guy who made the tutorial! </p>

<p>I got to this section of the tutorial which is where it went wrong:
<a href="http://www.gamefromscratch.com/page/Game-From-Scratch-CPP-Edition-Part-6.aspx" rel="nofollow">http://www.gamefromscratch.com/page/Game-From-Scratch-CPP-Edition-Part-6.aspx</a></p>

<p>The error i get is:</p>

<pre><code>playerpaddle.cpp(32): error C2039: 'IsKeyDown' : is not a member of 'tagINPUT'
c:\program files (x86)\microsoft sdks\windows\v7.0a\include\winuser.h(5332) : see      declaration of 'tagINPUT'

playerpaddle.cpp(36): error C2039: 'IsKeyDown' : is not a member of 'tagINPUT'
c:\program files (x86)\microsoft sdks\windows\v7.0a\include\winuser.h(5332) : see declaration of 'tagINPUT'

playerpaddle.cpp(40): error C2039: 'IsKeyDown' : is not a member of 'tagINPUT'
c:\program files (x86)\microsoft sdks\windows\v7.0a\include\winuser.h(5332) : see declaration of 'tagINPUT'

1&gt;c:\users\dave\c++\pang\playerpaddle.cpp(54): error C2064: term does not evaluate to a function taking 1 arguments
</code></pre>

<p>With this script section:</p>

<pre><code>void PlayerPaddle::Update(float elapsedTime)
{
if(Game::GetInput().IsKeyDown(sf::Key::Left))
{
    _velocity-=3.0f;
}
if(Game::GetInput().IsKeyDown(sf::Key::Right))
{
    _velocity+=3.0f;
}
if(Game::GetInput().IsKeyDown(sf::Key::Down))
{
    _velocity = 0.0f;
}

if(_velocity &gt; _maxVelocity)
    _velocity = _maxVelocity;

if(_velocity &lt; -_maxVelocity)
    _velocity = -_maxVelocity;

sf::Vector2f pos = this-&gt;GetPosition();

if(pos.x &lt;= GetSprite().GetSize().x/2 ||
    pos.x &gt;= (Game::SCREEN_WIDTH - GetSprite().GetSize().x/2))
{
    _velocity = -_velocity;
}

GetSprite().Move(_velocity * elapsedTime, 0);
}
</code></pre>

<p>I attached my project for some one to take a look at:
<a href="http://tinyurl.com/7evajju" rel="nofollow">http://tinyurl.com/7evajju</a></p>
