News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Pressing a certain key

Started by Sergiualamic, August 26, 2018, 01:16:01 PM

Previous topic - Next topic

Sergiualamic

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();

stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Sergiualamic