Jump to content
  • Advertisement
Sign in to follow this  
phil67rpg

direct x and keyboard input

This topic is 3624 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

Advertisement
Direct3D have nothing to do with inputs, it simply draw to the screen. There are many ways to read inputs, and the simplest one is as MJP said, windows Message (WM_KEYUP) or Win32 api call (GetKeyState). You can also use a library like SDL but it's not much intelligent if you don't use it for rendering. If you want a bit better input than normal Win32 ones, you can use DirectInput which is part of DirectX and support mouse/joystick/force feedback easily. Latest version still use DirectX8. http://msdn.microsoft.com/en-us/library/bb219802(VS.85).aspx

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!