@rbxts/pretty-react-hooks
Version:
Useful hooks for @rbxts/react
8 lines (7 loc) • 305 B
TypeScript
import { Binding } from "@rbxts/react";
/**
* Returns a binding to the mouse position.
* @param listener Optional listener to be called when the mouse position changes.
* @returns A binding to mouse position.
*/
export declare function useMouse(listener?: (mouse: Vector2) => void): Binding<Vector2>;