Class ButtonEventArgs
- Namespace
- nanoFramework.UI.Input
- Assembly
- nanoFramework.Graphics.dll
The ButtonEventArgs class contains information about button states.
public class ButtonEventArgs : InputEventArgs
- Inheritance
-
ButtonEventArgs
- Inherited Members
- Extension Methods
Constructors
ButtonEventArgs(ButtonDevice, PresentationSource, DateTime, Button)
Constructs an instance of the ButtonEventArgs class.
public ButtonEventArgs(ButtonDevice buttonDevice, PresentationSource inputSource, DateTime timestamp, Button button)
Parameters
buttonDevice
ButtonDeviceThe button device associated with this event.
inputSource
PresentationSourcePresentation Source
timestamp
DateTimeThe time when the input occured. (machine time)
button
ButtonThe button referenced by the event.
Fields
Button
The Button referenced by the event.
public readonly Button Button
Field Value
InputSource
The source for this button
public readonly PresentationSource InputSource
Field Value
Properties
ButtonState
The state of the button referenced by the event.
public ButtonState ButtonState { get; }
Property Value
IsRepeat
Whether the button pressed is a repeated button or not.
public bool IsRepeat { get; }