• Advertisement
Sign in to follow this  

Small windows input problem

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

im using the windows api GetKeyboardState() function to get the state of all the keys on the keyboard. IM using this for my UI input and say im typing in a text box if i push the "A" key i will get like 20 A's in my text box. I think this is because it takes 20 frames for me to push then release the A key. So how would i go about implementing a system where if i push the A key it will only appear once no matter how often the keyboard state is updated? Thanks

Share this post


Link to post
Share on other sites
Advertisement
Process a window message that works on keypress like WM_CHAR.

Share this post


Link to post
Share on other sites
Thats the thing. Im making a UI library in a seperate dll to use in all my projects and i want the input to be independant of the project

Share this post


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

  • Advertisement