DInput problems + Opengl Game Programming book..
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
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; }
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; }
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement