Jump to content
  • Advertisement
Sign in to follow this  
bambuti

[SlimDX] RawInput and multiple devices

This topic is 3665 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
Advertisement
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!