DInput problems + Opengl Game Programming book..

Started by
1 comment, last by Allman 21 years, 5 months ago
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
Advertisement
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; }


Game programmer.DirectX9, OpenGL.
thx alot man..i got it working

This topic is closed to new replies.

Advertisement