C# Class GnomeSurferPro.Util.InputDeviceHelper

A helper class that provides extra data for a given input device: - delta between the current position, - an element the intput device was placed at.
Datei anzeigen Open project: igemsoftware/BU_Wellesley_Software_2011

Public Methods

Method Description
ClearDeviceState ( System.Windows.Input.InputDevice device ) : void
DraggedDelta ( System.Windows.Input.InputDevice inputDevice, UIElement relativeTo ) : System.Windows.Vector

Returns delta between current input device position and where the input device was placed relative to the given elementToDrag.

GetDragSource ( System.Windows.Input.InputDevice inputDevice ) : DependencyObject

Returns the Source the input device was placed at.

InitializeDeviceState ( System.Windows.Input.InputDevice device ) : void

Private Methods

Method Description
DraggedDelta ( System.Windows.Input.InputDevice inputDevice, Window window, UIElement relativeTo ) : System.Windows.Vector

Method Details

ClearDeviceState() public static method

public static ClearDeviceState ( System.Windows.Input.InputDevice device ) : void
device System.Windows.Input.InputDevice
return void

DraggedDelta() public static method

Returns delta between current input device position and where the input device was placed relative to the given elementToDrag.
public static DraggedDelta ( System.Windows.Input.InputDevice inputDevice, UIElement relativeTo ) : System.Windows.Vector
inputDevice System.Windows.Input.InputDevice
relativeTo System.Windows.UIElement
return System.Windows.Vector

GetDragSource() public static method

Returns the Source the input device was placed at.
public static GetDragSource ( System.Windows.Input.InputDevice inputDevice ) : DependencyObject
inputDevice System.Windows.Input.InputDevice
return System.Windows.DependencyObject

InitializeDeviceState() public static method

public static InitializeDeviceState ( System.Windows.Input.InputDevice device ) : void
device System.Windows.Input.InputDevice
return void