Skip to content

Controls: refactor input binding system #3186

@MohammadSadeghSalimian

Description

@MohammadSadeghSalimian

Feature Suggestion

Feature Description: To change the mouse and keyboard keys for panning, zooming, etc., for Actions in Plot Viewer in WPF, I had to create a class from the IPLotInteraction interface and change it based on my needs. However, I think in some cases, users need to assign a key combination to these plot actions. For example, I prefer to pan the axis while the space key is being held and dragged with the mouse's middle button.

Code example: If applicable, use this space to demonstrate how you wish the new feature could be used in code.

public InputBindings Inputs = new InputBindings()
{
    DragPanButton = MouseButton.Middle+KeyBoardKeys.Space.Holding,
    DragZoomRectangleButton = MouseButton.Right,
    DragZoomButton = MouseButton.Middle+KeyBoardKeys.Alt.Holding,
    ClickAutoAxisButton = MouseButton.Middle,
    ClickContextMenuButton = MouseButton.Unknown,
    DoubleClickButton = MouseButton.Left,
    ZoomInWheelDirection = MouseWheelDirection.Up,
    ZoomOutWheelDirection = MouseWheelDirection.Down,
    LockHorizontalAxisKey = Key.Shift,
    LockVerticalAxisKey = Key.Ctrl,
    PanZoomRectangleKey = Key.Alt,
};

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions