By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,364 Members | 1,493 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,364 IT Pros & Developers. It's quick & easy.

get key pressed?

P: 1
Is there a way to make thins happen when keys are pressed in a console application... like have a little smily move around the screen with the arrows or with wasd?

edit: btw I'm using visual c++ 6
Mar 1 '07 #1
Share this Question
Share on Google+
1 Reply


P: 3
Is there a way to make thins happen when keys are pressed in a console application... like have a little smily move around the screen with the arrows or with wasd?

edit: btw I'm using visual c++ 6

Add mouse or Keyboard Interrupt Programmimg

do{


}
while ( !kbhit());

add all the key codes in Switch case to handle your Events.
Mar 1 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.