AtomicGameEngine / AtomicExamples

Examples for the Atomic Game Engine

Home Page:https://www.AtomicGameEngine.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to lock mouse pointer in the player (Windows)?

n9 opened this issue · comments

commented

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!