Sign in to follow this  

DirectInput Acquire

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

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