Sign in to follow this  

direct x and keyboard input

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

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

This topic is 3411 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this