Jump to content
  • Advertisement
Sign in to follow this  
sipickles

DIrectInput - truncation of constant value

This topic is 4604 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have a direct input query: This code works: if ( m_input->GetKeyPress( DIK_W, true ) == true ) g_network->GetPlayer()->GetProxyObject()->Pitch( 2.0f * g_timeDelta ); but this code: if ( m_input->GetKeyPress( DIK_UP, true ) == true ) g_network->GetPlayer()->GetProxyObject()->Pitch( 2.0f * g_timeDelta ); causes 'warning C4309: 'argument' : truncation of constant value'. I have used DIK_UP fine before.... am I missing a header or something? Ignoring the warning, I get spurious key presses! ouch! Thanks Simon ps. DIK_UPARROW causes the same effect!

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!