Skip to main content
GameDev.net gamedev.net
🔒 Locked

DirectInput Acquire

Started by TheObi Jan 18, 2009 at 6:51 AM 0 replies 650+ views
Original Post
TheObi
TheObi
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 <--

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.