Sign in to follow this  
Stefan Fischlschweiger

SharpDX DirectInput not found

Recommended Posts

So, I've now started coding a text renderer into my engine, based on D2D1 and DirectWrite. Now, to do that I had to switch from the SharpDX DX11 to the DX11_2 binaries. Problem is, they don't include DirectInput. So I tried to keep using the SharpDX.DirectInput.dll from the DX11 version, but I keep getting a namespace not found error. What can I do? I don't want to switch to RawInput since I have absolutely zero clue about it.

Share this post


Link to post
Share on other sites
DirectInput has been depreciated by MS for years. It is now just an expensive shell over regular Windows messages.

You should be using standard Windows messages (for text input and mouse cursor), Raw Input (for game controls, joysticks, and mouselook), and XInput (for controllers).

None of them are particular difficult to learn - the hardest part really is to get your input system to switch between them as appropriate.

Share this post


Link to post
Share on other sites

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