Author Topic: Pressing a certain key  (Read 2571 times)

Offline Sergiualamic

  • Single posting newcomer
  • *
  • Posts: 2
Pressing a certain key
« on: August 26, 2018, 01:16:01 pm »
Hi, while I was working at a console application in CodeBlocks, I wanted to check if a certain key (like ,,z,,) is pressed, but I know only to check if any key was pressed, can you guys help me?! :(
 

I am using this:

key=getch();
« Last Edit: August 26, 2018, 01:18:15 pm by Sergiualamic »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Pressing a certain key
« Reply #1 on: August 26, 2018, 04:08:12 pm »
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 Sergiualamic

  • Single posting newcomer
  • *
  • Posts: 2
Re: Pressing a certain key
« Reply #2 on: August 26, 2018, 06:33:29 pm »
Thanks!