I set up some event for few key with their EKEY_CODE, and I'm trying to ignore the other keyboard buttons... Unfortunately I cannot ignore the left and right Windows buttons. Each time I press them, my application exists with the following line in the cmd window:
Just as a first check, make sure you're OnEvent() function returns "false" by default. I'd have to look more at the key files to see what is going on. If you have the sources, look through the file CIrrDeviceWin32, specifically starting on line 764. It may be that those keys are still passed on to the system. idk. Or it could be something else in your program. The Windows buttons don't crash for me, but I use Burnings and OpenGL.
chronologicaldot wrote:The Windows buttons don't crash for me, but I use Burnings and OpenGL.
Hi. There is no crash. But in my fullscreen-application it interacts with my program -> the start menu appears. Every other not-used buttons are ignored. Nothing happens when I push them. Event checking is passed only to WSA buttons currently.
But unfortunately the left and right WIN keys are also working... I would like to prevent this.
I see, and you're right - the Windows Start menu does open. Well, I don't think either key can be captured. They are akin to the PrtScr (Print Screen) key - the event WILL pass through your software regardless of your efforts to stop it.
I'm not sure precisely what you're doing, but you could try calling the IVideoDriver::endScene() function whenever those buttons are pressed to ensure the scene does end properly. That's my guess.
direct x doesn't like losing focus in full screen. If it only happens in full screen,most likely your problem.
One solution is a borderless window that fits the screen.