Gentleface › Devices & hardware › mouse-lock
mouse-lock icon
mouse-lockMouse lock: pointer lock, capture pointer. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed.
Code line-round
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M3.316 3.844C3.545 3.266 3.879 2.757 4.318 2.318C4.757 1.879 5.266 1.545 5.844 1.316C6.376 1.105 6.928 1 7.5 1C8.072 1 8.624 1.105 9.156 1.316C9.734 1.545 10.243 1.879 10.682 2.318C11.121 2.757 11.455 3.266 11.684 3.844C11.895 4.376 12 4.928 12 5.5C12 5.641 11.952 5.759 11.856 5.856C11.759 5.952 11.641 6 11.5 6C11.359 6 11.241 5.952 11.144 5.856C11.048 5.759 11 5.641 11 5.5C11 5.055 10.918 4.625 10.754 4.212C10.576 3.762 10.317 3.367 9.975 3.025C9.633 2.683 9.238 2.424 8.788 2.246C8.375 2.082 7.945 2 7.5 2C7.055 2 6.625 2.082 6.212 2.246C5.762 2.424 5.367 2.683 5.025 3.025C4.683 3.367 4.424 3.762 4.246 4.212C4.082 4.625 4 5.055 4 5.5L4 10.5C4 10.874 4.059 11.239 4.176 11.595C4.3 11.971 4.482 12.316 4.723 12.631C4.964 12.945 5.25 13.21 5.582 13.427C5.895 13.633 6.232 13.784 6.594 13.881C6.727 13.916 6.828 13.994 6.897 14.114C6.921 14.155 6.939 14.197 6.95 14.24L6.95 14.482C6.949 14.486 6.948 14.489 6.947 14.493C6.911 14.626 6.834 14.728 6.714 14.797C6.595 14.866 6.468 14.882 6.335 14.847C5.87 14.722 5.436 14.528 5.033 14.264C4.608 13.985 4.24 13.643 3.93 13.239C3.62 12.835 3.385 12.392 3.226 11.908C3.075 11.451 3 10.981 3 10.5L3 5.5C3 4.928 3.105 4.376 3.316 3.844ZM7.5 4C7.641 4 7.759 4.048 7.856 4.144C7.952 4.241 8 4.359 8 4.5L8 6.5C8 6.641 7.952 6.759 7.856 6.856C7.759 6.952 7.641 7 7.5 7C7.359 7 7.241 6.952 7.144 6.856C7.048 6.759 7 6.641 7 6.5L7 4.5C7 4.359 7.048 4.241 7.144 4.144C7.241 4.048 7.359 4 7.5 4ZM9.176 8.58C9.303 8.259 9.488 7.976 9.732 7.732C9.976 7.488 10.259 7.303 10.58 7.176C10.875 7.059 11.182 7 11.5 7C11.818 7 12.125 7.059 12.42 7.176C12.741 7.303 13.024 7.488 13.268 7.732C13.512 7.976 13.697 8.259 13.824 8.58C13.941 8.875 14 9.182 14 9.5L14 11C14.276 11 14.512 11.098 14.707 11.293C14.902 11.488 15 11.724 15 12L15 15C15 15.276 14.902 15.512 14.707 15.707C14.512 15.902 14.276 16 14 16L9 16C8.724 16 8.488 15.902 8.293 15.707C8.098 15.512 8 15.276 8 15L8 12C8 11.724 8.098 11.488 8.293 11.293C8.488 11.098 8.724 11 9 11L9 9.5C9 9.182 9.059 8.875 9.176 8.58ZM13 9.5C13 9.309 12.965 9.125 12.895 8.948C12.818 8.755 12.707 8.586 12.561 8.439C12.414 8.293 12.245 8.182 12.052 8.105C11.875 8.035 11.691 8 11.5 8C11.309 8 11.125 8.035 10.948 8.105C10.755 8.182 10.586 8.293 10.439 8.439C10.293 8.586 10.182 8.755 10.105 8.948C10.035 9.125 10 9.309 10 9.5L10 11L13 11L13 9.5Z"/></svg>
// Gentleface "mouse-lock" (line-round), MIT. https://gentleface.com/icons/mouse-lock
import type { SVGProps } from 'react';
export function MouseLockIcon(props: SVGProps<SVGSVGElement>) {
return (
<svg xmlns="http://www.w3.org/2000/svg" width={16} height={16} viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
<path d="M3.316 3.844C3.545 3.266 3.879 2.757 4.318 2.318C4.757 1.879 5.266 1.545 5.844 1.316C6.376 1.105 6.928 1 7.5 1C8.072 1 8.624 1.105 9.156 1.316C9.734 1.545 10.243 1.879 10.682 2.318C11.121 2.757 11.455 3.266 11.684 3.844C11.895 4.376 12 4.928 12 5.5C12 5.641 11.952 5.759 11.856 5.856C11.759 5.952 11.641 6 11.5 6C11.359 6 11.241 5.952 11.144 5.856C11.048 5.759 11 5.641 11 5.5C11 5.055 10.918 4.625 10.754 4.212C10.576 3.762 10.317 3.367 9.975 3.025C9.633 2.683 9.238 2.424 8.788 2.246C8.375 2.082 7.945 2 7.5 2C7.055 2 6.625 2.082 6.212 2.246C5.762 2.424 5.367 2.683 5.025 3.025C4.683 3.367 4.424 3.762 4.246 4.212C4.082 4.625 4 5.055 4 5.5L4 10.5C4 10.874 4.059 11.239 4.176 11.595C4.3 11.971 4.482 12.316 4.723 12.631C4.964 12.945 5.25 13.21 5.582 13.427C5.895 13.633 6.232 13.784 6.594 13.881C6.727 13.916 6.828 13.994 6.897 14.114C6.921 14.155 6.939 14.197 6.95 14.24L6.95 14.482C6.949 14.486 6.948 14.489 6.947 14.493C6.911 14.626 6.834 14.728 6.714 14.797C6.595 14.866 6.468 14.882 6.335 14.847C5.87 14.722 5.436 14.528 5.033 14.264C4.608 13.985 4.24 13.643 3.93 13.239C3.62 12.835 3.385 12.392 3.226 11.908C3.075 11.451 3 10.981 3 10.5L3 5.5C3 4.928 3.105 4.376 3.316 3.844ZM7.5 4C7.641 4 7.759 4.048 7.856 4.144C7.952 4.241 8 4.359 8 4.5L8 6.5C8 6.641 7.952 6.759 7.856 6.856C7.759 6.952 7.641 7 7.5 7C7.359 7 7.241 6.952 7.144 6.856C7.048 6.759 7 6.641 7 6.5L7 4.5C7 4.359 7.048 4.241 7.144 4.144C7.241 4.048 7.359 4 7.5 4ZM9.176 8.58C9.303 8.259 9.488 7.976 9.732 7.732C9.976 7.488 10.259 7.303 10.58 7.176C10.875 7.059 11.182 7 11.5 7C11.818 7 12.125 7.059 12.42 7.176C12.741 7.303 13.024 7.488 13.268 7.732C13.512 7.976 13.697 8.259 13.824 8.58C13.941 8.875 14 9.182 14 9.5L14 11C14.276 11 14.512 11.098 14.707 11.293C14.902 11.488 15 11.724 15 12L15 15C15 15.276 14.902 15.512 14.707 15.707C14.512 15.902 14.276 16 14 16L9 16C8.724 16 8.488 15.902 8.293 15.707C8.098 15.512 8 15.276 8 15L8 12C8 11.724 8.098 11.488 8.293 11.293C8.488 11.098 8.724 11 9 11L9 9.5C9 9.182 9.059 8.875 9.176 8.58ZM13 9.5C13 9.309 12.965 9.125 12.895 8.948C12.818 8.755 12.707 8.586 12.561 8.439C12.414 8.293 12.245 8.182 12.052 8.105C11.875 8.035 11.691 8 11.5 8C11.309 8 11.125 8.035 10.948 8.105C10.755 8.182 10.586 8.293 10.439 8.439C10.293 8.586 10.182 8.755 10.105 8.948C10.035 9.125 10 9.309 10 9.5L10 11L13 11L13 9.5Z" />
</svg>
);
}Vue: see /icons/mouse-lock.md
Svelte: see /icons/mouse-lock.md
HTML img: see /icons/mouse-lock.md
CSS: see /icons/mouse-lock.md
Data URL: see /icons/mouse-lock.md
Sprite: see /icons/mouse-lock.md
SwiftUI: see /icons/mouse-lock.md
Compose: see /icons/mouse-lock.md
Android XML: see /icons/mouse-lock.md
Flutter: see /icons/mouse-lock.md
Each icon is drawn on the 16 px grid, and most also on the 20 and 24 px grids (at 24 in three weights: light 1 px, regular 1.5 px, bold 2 px). Show the drawing made for your size, or an exact multiple of it, on whole pixels: 16 for 16 and 32 px, 20 for 20 and 40, 24 for 24 and 48. A size in between or a fractional position blurs it. The code on each icon page is the 16 px drawing, an SVG with fill="currentColor"; the icon page's downloads follow its Grid switch, and npm has the 20 and 24 px drawings too. The snippets are decorative (aria-hidden). For an icon that carries meaning on its own, such as an icon-only button, label the button, or give the SVG role="img" and an aria-label. More in how to use.
With npm: import { MouseLockIcon } from '@gentleface/react'; (setup).
Meaning
- Use it for
- pointer lock, capture pointer
- Example
- Lock the pointer to the game window
- Built from
mouse+ lock- Tags
- mouse, click, scroll, peripheral, input, pointing-device, lock
- Category
- Devices & hardware
- Component name
MouseLockIcon- History
- added, released in 0.4.0
- Since
- version 0.4.0
Family 6
More devices & hardware icons
av-receiver backlight backspace battery battery-alert battery-arrow-right battery-charging battery-check battery-clock battery-full battery-gear battery-low battery-medium battery-off battery-plus battery-question · all devices & hardware icons
For agents
Metadata: /icons/mouse-lock.json · Markdown: /icons/mouse-lock.md · SVG: https://gentleface.com/svg/{style}/16/mouse-lock.svg · PNG: https://gentleface.com/png/{style}/{16|32|48}/mouse-lock.png