Advertisement Jump to content
Sign in to follow this  

[SlimDX] RawInput and multiple devices

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

I've just started using SlimDX and it's been a pleasure to use thus far. However, I want to support the use of multiple mice. Maybe I'm reading the documentation wrong, but I can't see how to go from enumerating the devices (which gives me DeviceInfo objects) to creating the devices for my use (since you can't construct a Device from a DeviceInfo). As a minor aside, given that Device.GetDevices() returns DeviceInfo objects, is there a way to enumerate MouseInfo objects directly, rather than enumerate all mouse devices and cast them to MouseInfos (which seems a bit non-OO)? Also, the information passed to the MouseInput callback doesn't seem to specify which device it's come from anyway. Could someone point me at the right way of doing this?

Share this post

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

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!