472,126 Members | 1,584 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,126 software developers and data experts.

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 3725
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 leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.