How can I capture the mouse in window mode?

All things related to window and input you can find in FViewport

https://docs.unrealengine.com/latest/INT/API/RuntimeModules/Engine/FViewport/index.html

And there you can find things like that :slight_smile: :

https://docs.unrealengine.com/latest/INT/API/RuntimeModules/Engine/FViewport/LockMouseToViewport/index.html

To get instace of your viewport from:

GEngine->GameViewport