When I start a game, I always need to click once with the mouse before the game takes the cursor into account. The same seems to happen with my HUD, where the first click is needed to activate the mouse, and the second click actually works. How do I make the engine automatically use the mouse, without needing my player to click once or twice each time the game starts or a menu opens?
Thanks!!