🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
Escape key
how can I get it so that if the user presses ''ESC'' then it will do something.
if (cKey == ''//???'') {//do something}
Could I be any more dumber?
(What do you mean, "No"?)
but i need to know what character is needed for ''ESC'' as pressing the esc button when creating the code will not work.
Could I be any more dumber?
(What do you mean, "No"?)
Could I be any more dumber?
(What do you mean, "No"?)
i think ESC is dec 27 in ASCII chart but i could be wrong
Edited by - Load Runner on October 16, 2001 6:00:31 PM
Edited by - Load Runner on October 16, 2001 6:00:31 PM
LoadRunner is right, it is 27 in dec and it is 1B in hex so I''ll use that.
Now all you have to do is what I described in the other post. When you parse the input String do this
This is, of course, as long as the escape key shows up in the standard input string, which I''m pretty sure it will do.
RandomTask
Now all you have to do is what I described in the other post. When you parse the input String do this
if( inputString[0] == 0x1B ){ MyProcessEscapeKeyFunction();}
This is, of course, as long as the escape key shows up in the standard input string, which I''m pretty sure it will do.
RandomTask
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement