Table of Contents

Class InputController

Namespace
HelixToolkit.WinUI.SharpDX
Assembly
HelixToolkit.WinUI.SharpDX.dll

Use to determine shortcut keys/Mouse key for Rotation, Pan, etc. User must override certain functions to change default shortcut keys/buttons.

public class InputController
Inheritance
InputController
Inherited Members

Properties

Viewport

Gets or sets the viewport.

public Viewport3DX? Viewport { get; set; }

Property Value

Viewport3DX

The viewport.

Methods

IsChangeFieldOfView(PointerPointProperties)

protected virtual bool IsChangeFieldOfView(PointerPointProperties properties)

Parameters

properties PointerPointProperties

Returns

bool

IsChangeLookAt(PointerPointProperties)

protected virtual bool IsChangeLookAt(PointerPointProperties properties)

Parameters

properties PointerPointProperties

Returns

bool

IsCtrlKeyPressed()

public static bool IsCtrlKeyPressed()

Returns

bool

IsResetCamera(PointerPointProperties)

protected virtual bool IsResetCamera(PointerPointProperties properties)

Parameters

properties PointerPointProperties

Returns

bool

IsShiftKeyPressed()

public static bool IsShiftKeyPressed()

Returns

bool

IsStartPan(PointerPointProperties)

protected virtual bool IsStartPan(PointerPointProperties properties)

Parameters

properties PointerPointProperties

Returns

bool

IsStartRotate(PointerPointProperties)

protected virtual bool IsStartRotate(PointerPointProperties properties)

Parameters

properties PointerPointProperties

Returns

bool

IsStartZoom(PointerPointProperties)

protected virtual bool IsStartZoom(PointerPointProperties properties)

Parameters

properties PointerPointProperties

Returns

bool

IsStartZoomExtends(PointerPointProperties)

protected virtual bool IsStartZoomExtends(PointerPointProperties properties)

Parameters

properties PointerPointProperties

Returns

bool

IsStartZoomRectangle(PointerPointProperties)

protected virtual bool IsStartZoomRectangle(PointerPointProperties properties)

Parameters

properties PointerPointProperties

Returns

bool

OnKeyPressed(KeyRoutedEventArgs)

public virtual void OnKeyPressed(KeyRoutedEventArgs e)

Parameters

e KeyRoutedEventArgs

OnKeyboardChangeView(KeyRoutedEventArgs)

protected virtual void OnKeyboardChangeView(KeyRoutedEventArgs e)

Parameters

e KeyRoutedEventArgs

OnKeyboardMoveCamera(KeyRoutedEventArgs)

protected virtual void OnKeyboardMoveCamera(KeyRoutedEventArgs e)

Parameters

e KeyRoutedEventArgs

OnKeyboardResetCamera(KeyRoutedEventArgs)

protected virtual void OnKeyboardResetCamera(KeyRoutedEventArgs e)

Parameters

e KeyRoutedEventArgs

OnKeyboardStartPan(KeyRoutedEventArgs)

protected virtual void OnKeyboardStartPan(KeyRoutedEventArgs e)

Parameters

e KeyRoutedEventArgs

OnKeyboardStartRotate(KeyRoutedEventArgs)

protected virtual void OnKeyboardStartRotate(KeyRoutedEventArgs e)

Parameters

e KeyRoutedEventArgs

OnKeyboardStartZoom(KeyRoutedEventArgs)

protected virtual void OnKeyboardStartZoom(KeyRoutedEventArgs e)

Parameters

e KeyRoutedEventArgs

OnKeyboardStartZoomExtends(KeyRoutedEventArgs)

protected virtual void OnKeyboardStartZoomExtends(KeyRoutedEventArgs e)

Parameters

e KeyRoutedEventArgs

OnKeyboardStartZoomRectangle(KeyRoutedEventArgs)

protected virtual void OnKeyboardStartZoomRectangle(KeyRoutedEventArgs e)

Parameters

e KeyRoutedEventArgs

OnPointerPressed(PointerRoutedEventArgs)

Raises the PointerPressed event.

public virtual void OnPointerPressed(PointerRoutedEventArgs e)

Parameters

e PointerRoutedEventArgs

The PointerRoutedEventArgs instance containing the event data.

RaiseOnAddMoveForce(AddForceEventArgs)

protected void RaiseOnAddMoveForce(InputController.AddForceEventArgs args)

Parameters

args InputController.AddForceEventArgs

RaiseOnAddPanForce(AddForceEventArgs)

protected void RaiseOnAddPanForce(InputController.AddForceEventArgs args)

Parameters

args InputController.AddForceEventArgs

RaiseOnAddRotationForce(AddForceEventArgs)

protected void RaiseOnAddRotationForce(InputController.AddForceEventArgs args)

Parameters

args InputController.AddForceEventArgs

RaiseOnAddZoomForce(AddForceEventArgs)

protected void RaiseOnAddZoomForce(InputController.AddForceEventArgs args)

Parameters

args InputController.AddForceEventArgs

RaiseOnBackView()

protected void RaiseOnBackView()

RaiseOnBottomView()

protected void RaiseOnBottomView()

RaiseOnFrontView()

protected void RaiseOnFrontView()

RaiseOnLeftView()

protected void RaiseOnLeftView()

RaiseOnRestoreCameraSettings()

protected void RaiseOnRestoreCameraSettings()

RaiseOnRightView()

protected void RaiseOnRightView()

RaiseOnTopView()

protected void RaiseOnTopView()

Events

OnAddMoveForce

Occurs when [on add move force].

public event EventHandler<InputController.AddForceEventArgs>? OnAddMoveForce

Event Type

EventHandler<InputController.AddForceEventArgs>

OnAddPanForce

Occurs when [on add pan force].

public event EventHandler<InputController.AddForceEventArgs>? OnAddPanForce

Event Type

EventHandler<InputController.AddForceEventArgs>

OnAddRotationForce

Occurs when [on add rotation force].

public event EventHandler<InputController.AddForceEventArgs>? OnAddRotationForce

Event Type

EventHandler<InputController.AddForceEventArgs>

OnAddZoomForce

Occurs when [on add zoom force].

public event EventHandler<InputController.AddForceEventArgs>? OnAddZoomForce

Event Type

EventHandler<InputController.AddForceEventArgs>

OnBackView

Occurs when [on back view].

public event EventHandler? OnBackView

Event Type

EventHandler

OnBottomView

Occurs when [on bottom view].

public event EventHandler? OnBottomView

Event Type

EventHandler

OnChangeFieldOfView

Occurs when [on change field of view].

public event EventHandler<PointerRoutedEventArgs>? OnChangeFieldOfView

Event Type

EventHandler<PointerRoutedEventArgs>

OnChangeLookAt

Occurs when [on change look at].

public event EventHandler<PointerRoutedEventArgs>? OnChangeLookAt

Event Type

EventHandler<PointerRoutedEventArgs>

OnFrontView

Occurs when [on front view].

public event EventHandler? OnFrontView

Event Type

EventHandler

OnLeftView

Occurs when [on left view].

public event EventHandler? OnLeftView

Event Type

EventHandler

OnResetCamera

Occurs when [on reset camera].

public event EventHandler? OnResetCamera

Event Type

EventHandler

OnRestoreCameraSettings

Occurs when [on restore camera settings].

public event EventHandler? OnRestoreCameraSettings

Event Type

EventHandler

OnRightView

Occurs when [on right view].

public event EventHandler? OnRightView

Event Type

EventHandler

OnStartPan

Occurs when [on start pan].

public event EventHandler<PointerRoutedEventArgs>? OnStartPan

Event Type

EventHandler<PointerRoutedEventArgs>

OnStartRotate

Occurs when [on start rotate].

public event EventHandler<PointerRoutedEventArgs>? OnStartRotate

Event Type

EventHandler<PointerRoutedEventArgs>

OnStartZoom

Occurs when [on start zoom].

public event EventHandler<PointerRoutedEventArgs>? OnStartZoom

Event Type

EventHandler<PointerRoutedEventArgs>

OnStartZoomExtends

Occurs when [on start zoom extends].

public event EventHandler<PointerRoutedEventArgs>? OnStartZoomExtends

Event Type

EventHandler<PointerRoutedEventArgs>

OnStartZoomRectangle

Occurs when [on start zoom rectangle].

public event EventHandler<PointerRoutedEventArgs>? OnStartZoomRectangle

Event Type

EventHandler<PointerRoutedEventArgs>

OnTopView

Occurs when [on top view].

public event EventHandler? OnTopView

Event Type

EventHandler