basically I am making a Bricks and Bat Game in a project assigned to me by my university. I am using SFML for it. The compiler is Microsoft VS 2019. Now the problem is that we know in SFML program two windows open. One is the console window and the other is the window that has been rendered by coder in code. For keys press and other inputs the console window is required to be active. But as soon as the code begin to execute, the rendered window comes above console window and thus becomes active window. The console window becomes deactivated and we have to click on it manually to put control on it for user input. So is there any function which itself makes console window active?
1.4m articles
1.4m replys
5 comments
57.0k users