Skip to main content

InputEventArgs Class

NuGet: GHIElectronics.TinyCLR.UI
Assembly: GHIElectronics.TinyCLR.UI
Namespace: GHIElectronics.TinyCLR.UI.Input

The InputEventArgs class represents a type of RoutedEventArgs that are relevant to all input events.

public class InputEventArgs : RoutedEventArgs

Constructors

InputEventArgs(InputDevice inputDevice, DateTime timestamp)

public InputEventArgs(InputDevice inputDevice, DateTime timestamp)

Initializes a new instance of the InputEventArgs class.

ParameterTypeDescription
inputDeviceInputDeviceThe input device to associate with this event.
timestampDateTimeThe time when the input occured.

Properties

Device

public InputDevice Device { get; }

Read-only access to the input device that initiated this event.

Fields

Timestamp

public readonly DateTime Timestamp

Read-only access to the input timestamp.