usePointer
Listen for a key event.
Syntax
usePointer(event, listener, options);
Parameters
Name | Type | Description |
---|---|---|
event | PointerEventType | The pointer event type to listen for. |
listener | (event: PointerEvent) => void | The listener to run. |
options | UsePointerOptions | The options. (options) |
Example
usePointer('pointerdown', event => {
console.log('pointer down!', event);
});
Available on: Client