UNPKG

@rbxts/pretty-react-hooks

Version:
8 lines (7 loc) 305 B
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>;