All Content
Blogs
Forums
News
Tutorials
Log In
Sign Up
Login
Username / Email
Password
Remember me
Forgot password?
Login
or
Don't have a GameDev.net account?
Sign up
Forgot your password?
Email Address
Reset Password
Please contact us if you have any trouble resetting your password.
Home
Blogs
Forums
News
Portfolios
Projects
Tutorials
22
users logged in
New?
Learn about game development
.
Before posting, review our
community guidelines
.
Support GameDev.net with a monthly
GDNet+ subscription
!
Follow Us
Chat in the
GameDev.net Discord!
Back to For Beginners
Advertisement
N
For Beginners
Started by
craphead
November 26, 2002 04:04 PM
2
comments, last by
craphead
21 years, 11 months ago
craphead
Author
112
November 26, 2002 04:04 PM
how do i make it so that if someone hits N they exit the program?
50/50 Robotics and Software
Cancel
Save
craphead
Author
112
November 26, 2002 04:34 PM
wait n/m
50/50 Robotics and Software
Cancel
Save
Advertisement
l3mon
128
November 27, 2002 09:24 AM
Are you talking about console or Win32 applications?
I assume console, and I must admit I don''t know.
In Windows environment, there''s a thing called WM_KEYDOWN and you''d have to check the key scan code for ''N''...
Cancel
Save
Anonymous
November 27, 2002 09:29 AM
char letter = getchar();
if (letter == "n"
Exit();
Cancel
Save
This topic is closed to new replies.
Advertisement
Popular Topics
Calculate angles to render 3D actor as an affine-transform sprite
Math and Physics
Inheritance tree
General and Gameplay Programming
Falloff
Math and Physics
Occluder from AABB, near plane 'fix'?
Graphics and GPU Programming
Ideas for mechanics for battles.
Game Design and Theory
When you Decide to add BGM to your project...
For Beginners
Advertisement
Recommended Tutorials
So, You Have Cool Game Ideas?
Career Development
Developer Spotlight: Jonathan Blow
Interviews
An Introduction to BREW and OpenGL ES
General and Gameplay Programming
Making metalic text in Photoshop
Visual Arts
John Carmack .plan Archive - 2000
Interviews
Reticulating splines
About GameDev.net
Community Guidelines
Terms of Service
Privacy Policy
Contact Us
Copyright (c) 1999-2024 GameDev.net, LLC
Back to Top