This page is work-in-progress. You can reach me on twitter or mail to

Playground - Mouse lock

Use the mouse Luke. All images come from Orion by Feiss



When the mouse is locked mousemove event will provide changes against x and y axis:

  mousemove: function(e) {   

    e.movementX; /* delta X */
    e.movementY; /* delta Y */


Mouse lock comes in handy whenever the pointer should stay in place while moving the mouse. A few examples:

Ask question:

Fork me on GitHub