html5

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

Mon, Aug 24, 2015 - 1:03am -- 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