Jump to content
  • Advertisement
Sign in to follow this  

KeyProcess

This topic is 4953 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello all. Anybody here using one of the NeHe basekodes that have the keyProcess seperated into its own file? Whay would I do this? Unless I have missunderstood something is just makes tings harder to code. F.eks. I tried to make a camera class. When I have all the keypress stuff in a seprateded file I cant just write camera->moveCameres(UP) in this file. I have to make a moveCamera function and use this in the base file... Is this the way you all do it? What do I do wrong? Thanks Endre PS: if the next contest could start soon, I'll enter... and this time I meen it.

Share this post


Link to post
Share on other sites
Advertisement
To ask the question in a different way: How many of you use one of the NeHe basecodes when you make demos?

If you do, what version?
And how do you organize the keyprocessing code?

Thanks

Endre

Share this post


Link to post
Share on other sites

I am using the basecode for demos. But i am working on building my own full blown engine, errrr yeah that's what i hope i'll end up with :P

Well for the demo, i use it, so i could keep concentrated on the gfx stuff. And for the keypress part, as you "only" need to handle the escape key, i have thrown away the F1 part of the tuts, and kept the rest as-is.

non-interactive demos <-> no keyboard /mouse handling

But if you guys have a better / clever idea to handle kbd and mouse stuff (ie for other, more complex programs) i'd be happy to hear about it

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!