Jump to content
  • Advertisement
Sign in to follow this  

DirectInput Acquire

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

Hey, i have a problem with the InputController. Every time i use the Function "Acquire" my complete system hangs. (ca. 5seconds) Anyone know (solved) this problem? I cant find the cause. Cheers... Michael Sourcecode: dev_keyb = new Device(SystemGuid.Keyboard); dev_keyb.SetCooperativeLevel(form, CooperativeLevelFlags.Background | CooperativeLevelFlags.NonExclusive); dev_keyb.SetDataFormat(DeviceDataFormat.Keyboard); dev_keyb.Acquire(); // --> SYSTEM HANG <-- dev_mouse = new Device(SystemGuid.Mouse); dev_mouse.SetCooperativeLevel(form, CooperativeLevelFlags.NonExclusive | CooperativeLevelFlags.Background); dev_mouse.SetDataFormat(DeviceDataFormat.Mouse); dev_mouse.Acquire(); // --> SYSTEM HANG <--

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!