![]() |
Reading Virtual Key Codes with gets/fgets
Hello.
Lets say we have this code Code:
char string [256];Is there any way to do it ? Thanks in advance. |
Re: Reading Virtual Key Codes with gets/fgets
Sorry "VK_PRIOR " is the virtual key code of the page Up button.
|
Re: Reading Virtual Key Codes with gets/fgets
You need to use a function that returns VK_ values, such as GetKeyState. gets is not one of those functions so you cannot use it for what you want to do.
|
Re: Reading Virtual Key Codes with gets/fgets
Quote:
Code:
if(GetKeyState(VK_PRIOR)) |
| All times are GMT +5.5. The time now is 17:00. |