API

Type Alias DeviceSourceEvent<T>

DeviceSourceEvent: T extends Keyboard
    ? IKeyboardEvent
    : T extends Mouse
        ? IWheelEvent
        | IPointerEvent
        : T extends Touch ? IPointerEvent : never

Subset of DeviceInput that only handles pointers and keyboard

Type Parameters