ButtonBase Class

Definition

Base implementation of Button logic. Hardware independent. Inherit for specific hardware handling.

public class ButtonBase : IDisposable
type ButtonBase = class
    interface IDisposable
Public Class ButtonBase
Implements IDisposable
Inheritance
ButtonBase
Derived
Implements

Constructors

ButtonBase()

Initialization of the button.

ButtonBase(TimeSpan, TimeSpan, TimeSpan)

Initialization of the button.

Properties

IsDoublePressEnabled

Define if double press event is enabled or disabled on the button.

IsHoldingEnabled

Define if holding event is enabled or disabled on the button.

IsPressed

Define if single press event is enabled or disabled on the button.

Methods

Dispose()

Public dispose method for IDisposable interface.

Dispose(Boolean)

Cleanup resources.

HandleButtonPressed()

Handler for pressing the button.

HandleButtonReleased()

Handler for releasing the button.

Events

ButtonDown

Delegate for button down event.

ButtonUp

Delegate for button up event.

DoublePress

Delegate for button double pressed event.

Holding

Delegate for button holding event.

Press

Delegate for button pressed event.

Applies to