Moving mouse from flambe

21 views
Skip to first unread message

mgr...@teravisiongames.com

unread,
Nov 10, 2015, 1:20:46 PM11/10/15
to Flambe
Hi all!, I'm working in an aiming game where I dissapear the mouse cursor and show an asset as an aim, however I would like to know if I can 'help' the aiming, I mean, can I move the cursor to some fixed position?

Best Regards

Martin Parent

unread,
Nov 10, 2015, 2:12:08 PM11/10/15
to Flambe, mgr...@teravisiongames.com
Yes you can get full control of the mouse using the Pointer Lock API.

https://developer.mozilla.org/en-US/docs/Web/API/Pointer_Lock_API
It isn't supported by IE yet, only by Edge 13 but it is fully supported by Chrome and Firefox: http://caniuse.com/#feat=pointerlock
Reply all
Reply to author
Forward
0 new messages