menu

InputPointerBinding

import { InputPointerBinding } from "destack:input/binding";

Pointer binding family.

language/library/src/input/binding/pointer.ds:152:213
1export interface InputPointerBinding {2    readPointerState(device: InputDeviceHandle): Result<PointerState, HostError>;3    setPointerRelativeMode(device: InputDeviceHandle, isEnabled: boolean): Result<void, HostError>;4    setPointerGrab(device: InputDeviceHandle, window: WindowHandle, mode: PointerGrabMode): Result<void, HostError>;5    capturePointer(device: InputDeviceHandle, window: WindowHandle, isEnabled: boolean): Result<void, HostError>;6    warpPointer(device: InputDeviceHandle, window: WindowHandle, x: float64, y: float64): Result<void, HostError>;7}

Members

readPointerState(device: InputDeviceHandle): Result<PointerState, HostError>

Read one pointer state snapshot.

setPointerRelativeMode(device: InputDeviceHandle, isEnabled: boolean): Result<void, HostError>

Enable or disable relative pointer mode.

setPointerGrab(device: InputDeviceHandle, window: WindowHandle, mode: PointerGrabMode): Result<void, HostError>

Set pointer grab mode.

capturePointer(device: InputDeviceHandle, window: WindowHandle, isEnabled: boolean): Result<void, HostError>

Enable or disable pointer capture.

warpPointer(device: InputDeviceHandle, window: WindowHandle, x: float64, y: float64): Result<void, HostError>

Warp pointer position.