html5

A convenience utility library to take over the mouse cursor ("pointer lock") in the browser with JavaScript

Sun, Aug 23, 2015 - 10:03pm -- Isaac Sukin

Two years ago when I was writing my book about building 3D browser games, I was spending a lot of time writing first person games in JavaScript. First person games in particular involve a lot of fast, precise motion, which makes "pointer lock" essential. "Pointer lock" is when a program takes over the mouse cursor, tracking mouse movement on its own and displaying its own cursor if needed (usually locked to the middle of the screen, hence the name).

Subscribe to RSS - html5