Advertisement Jump to content


This topic is now archived and is closed to further replies.


OpenGL DInput problems + Opengl Game Programming book..

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

Hi, I have the Opengl Game programming book, and I don''t know if anyone here has used the input wrapper that they have in the book, but when I try to implement the wrapper, it works well for ALL of the keys..EXCEPT the arrow keys like DIK_UP, DIK_DOWN, DIK_LEFT, DIK_RIGHT...i don''t know why..if you have any suggestions..please post

Share this post

Link to post
Share on other sites
Half hour ago solved adecvate proble,.

Look in files and find were KeyDown & KeyUp define
remake them to use type ''int'' !!!!

bool KeyDown(int key) { return (m_keys[key] & 0x80) ? true : false; }
bool KeyUp(int key) { return (m_keys[key] & 0x80) ? false : true; }

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!