Author Topic: KeyBoard Events  (Read 2467 times)

Offline jsimis2

  • Single posting newcomer
  • *
  • Posts: 2
KeyBoard Events
« on: April 10, 2019, 04:49:47 am »
So I wanted my program to see if the w key was being held and not pressed, and when it is held it would change the characters image. But I don't know how to check if it is being held. When it continuously checks it flashes between the two images. Even a link can help!

Thanks in advance!

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: KeyBoard Events
« Reply #1 on: April 10, 2019, 05:51:26 am »
Please read and follow this website rules. http://forums.codeblocks.org/index.php/topic,9996.0.html
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline jsimis2

  • Single posting newcomer
  • *
  • Posts: 2
Re: KeyBoard Events
« Reply #2 on: April 11, 2019, 04:01:36 am »
Oh I'm sorry I clicked the wrong user forum, thanks!