469,609 Members | 1,414 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,609 developers. It's quick & easy.

get key pressed?

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
1 3629
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.

Similar topics

reply views Thread by Koen | last post: by
8 posts views Thread by Syed Ali | last post: by
3 posts views Thread by James McGivney | last post: by
4 posts views Thread by actionwoman63 | last post: by
19 posts views Thread by darrel | last post: by
6 posts views Thread by Stefan Mueller | last post: by
reply views Thread by devrayhaan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.