Pointer Type
The pointer type store holds the type of the user’s device pointer.
It can be one of the following values:
null
: The pointer type is unknownmouse
: The user has a mouse or a trackpadtouch
: The user has a touch screenpen
: The user has a pen or a stylusgame
: The user has a game pointer device (e.g. a wiimote, a kinect, etc.)
Example
You are currently using a unknown
pointer device.
Sources
+page.svelte
<script lang="ts">
import { pointerType } from 'louisette'
</script>
<p>
You are currently using a <code>{$pointerType || 'unknown'}</code> pointer device.
</p>