Pointer Lock API

- REC

API that provides access to raw mouse movement data. This is done by ignoring boundaries resulting from screen edges where the cursor can't go beyond, providing proper control for first person or real time strategy games.

Chrome

  1. 4 - 15: Not supported
  2. 16 - 21: Disabled by default
  3. 22 - 36: Supported
  4. 37 - 130: Supported
  5. 131: Supported
  6. 132 - 134: Supported

Edge

  1. 12: Not supported
  2. 13 - 130: Supported
  3. 131: Supported

Safari

  1. 3.1 - 10: Not supported
  2. 10.1 - 18.0: Supported
  3. 18.1: Supported
  4. 18.2 - TP: Supported

Firefox

  1. 2 - 13: Not supported
  2. 14 - 49: Supported
  3. 50 - 131: Supported
  4. 132: Supported
  5. 133 - 135: Supported

Opera

  1. 9 - 12.1: Not supported
  2. 15 - 23: Supported
  3. 24 - 113: Supported
  4. 114: Supported

IE

  1. 5.5 - 10: Not supported
  2. 11: Not supported

Chrome for Android

  1. 131: Not supported

Safari on iOS

  1. 3.2 - 18.0: Not supported
  2. 18.1: Not supported
  3. 18.2: Not supported

Samsung Internet

  1. 4 - 25: Not supported
  2. 26: Not supported

Opera Mini

  1. all: Not supported

Opera Mobile

  1. 10 - 12.1: Not supported
  2. 80: Support unknown

UC Browser for Android

  1. 15.5: Support unknown

Android Browser

  1. 2.1 - 4.4.4: Not supported
  2. 131: Not supported

Firefox for Android

  1. 132: Supported

QQ Browser

  1. 14.9: Support unknown

Baidu Browser

  1. 13.52: Supported

KaiOS Browser

  1. 2.5: Supported
  2. 3: Supported
Resources:
MDN Web Docs - Pointer Lock
Simple demo