How to lock mouse pointer in the player (Windows)?
n9 opened this issue · comments
Is it possible to lock mouse pointer in the player for Windows, so it is possible to turn around using mouse?
To wrap the Cursor in the window add the line "Atomic.input.setMouseMode(Atomic.MM_WRAP);" to main.js. To hide the Cursor add the line "Atomic.input.setMouseVisible(false);" also.
You could also add a hotkey to toggle it or similar.
@n9 Please use the QA system to ask questions: https://qa.atomicgameengine.com/ it will help others find answers...
@benwolf Good answer :)
Thanks!