DirectInput plasted me for a long time.

xiaoxiao2021-03-06  42

Take out this afternoon. Eat dumplings at night ~~

Take a good time ~

DirectInput plasted me in nearly half a day during initialization. Let me be confused is that the code is exactly the same as the old initialization code I wrote, but whenever you perform acquire (), E_ACCESSDENIED will be returned. Google has not been related to the relevant information. Finally, the code of the Holy Sword 2 looks at which place is initialized. It is found that it gets the device after receiving the WM_ACTIVE message. I also found that when I run debugger if the window is not the current window, the acquisition device will fail. If the game window is in the ACQUIRE (), there is no problem. The problem is solved this. As for the original program, this kind of error will not appear, it is too lazy to study.

Just start school, there is less time. It's a depressed trouble. Sigh! Bored life.

转载请注明原文地址:https://www.9cbs.com/read-56186.html

New Post(0)