• Advertisement
Sign in to follow this  

DIrectInput - truncation of constant value

This topic is 4426 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