SEE EDIT UPDATES BELOW. Original question has been modified!
I have a working window that uses a DX11 device. My problem comes along when I try to go fullscreen usin
I resolved this problem by taking out the key hook entirely. The proper way to handle Alt+Enter is to create your swap chain, then call IDXGIFactory1::MakeWindowAssosciation( m_hWnd, DXGI_MWA_NO_ALT_ENTER)
. Then you can handle Alt+Enter with your own code from your windows message procedure using WM_SYSKEYDOWN
and WM_KEYUP
. I hope this helps others! I had a hell of a time getting this to work, so if you are having a hard time getting it to work in your own app, send me a message and I'll try to help you!