Class that serves as an interface to manage the viewer input bindings.

interface InputBindings {
    keyBindings: KeysActionBinding[];
    mouseBindings: MouseActionBinding[];
    scrollBindings: ScrollActionBinding[];
    getActionKeysBindings(theAction: KeyActions): KeysActionBinding[];
    getKeyBinding(theKey: number): KeysActionBinding;
    getMouseGestureBindings(theGesture: MouseGesture): MouseActionBinding[];
    getMouseKeyBinding(theMouseKey: number): MouseActionBinding;
    getScrollActionBindings(theAction: ScrollActions): ScrollActionBinding[];
    getScrollKeyBinding(theModifierKey: number): ScrollActionBinding;
    removeActionKeysBindings(theAction: KeyActions): void;
    removeKeyBinding(theKey: number): void;
    removeMouseGestureBindings(theGesture: MouseGesture): void;
    removeMouseKeyBinding(theMouseKey: number): void;
    removeScrollActionBindings(theAction: ScrollActions): void;
    removeScrollKeyBinding(theModifierKey: number): void;
    setKeyBinding(theBinding: KeysActionBinding): void;
    setMouseBinding(theBinding: MouseActionBinding): void;
    setScrollBinding(theBinding: ScrollActionBinding): void;
}

Properties

keyBindings: KeysActionBinding[]

Get an array of all the key bindings active in the viewer.

mouseBindings: MouseActionBinding[]

Get an array of all the mouse bindings active in the viewer.

scrollBindings: ScrollActionBinding[]

Get an array of all the mouse bindings active in the viewer.

Methods

  • Get the binding associated with the key passed.

    Parameters

    • theKey: number

      The key to get the binding.

    Returns KeysActionBinding

    Binding associated with the key.

  • Get the binding associated with the mouse key passed.

    Parameters

    • theMouseKey: number

      The mouse key to get the binding.

    Returns MouseActionBinding

    Binding associated with the mouse key.

  • Get the scroll binding associated with the modifier key passed (NONE if only scroll).

    Parameters

    • theModifierKey: number

    Returns ScrollActionBinding

    Scroll binding associated with the key.

  • Remove all the bindings with the specified action.

    Parameters

    • theAction: KeyActions

      The KeyActions to remove bindings.

    Returns void

  • Removes the binding associated with the key passed.

    Parameters

    • theKey: number

      The key to remove bindings.

    Returns void

  • Remove all the bindings with the specified MouseGesture.

    Parameters

    • theGesture: MouseGesture

      The MouseGesture to remove bindings.

    Returns void

  • Removes the binding associated with the mouse key passed.

    Parameters

    • theMouseKey: number

      The mouse key to remove bindings.

    Returns void

  • Remove all the scroll bindings with the specified action.

    Parameters

    Returns void

  • Removes the scroll binding associated with the modifier key passed (NONE if only scroll).

    Parameters

    • theModifierKey: number

    Returns void

  • Binds the passed KeysActionBinding in the viewer.

    Parameters

    Returns void

  • Binds the passed MouseActionBinding in the viewer.

    Parameters

    Returns void

  • Binds the passed ScrollActionBinding in the viewer.

    Parameters

    Returns void