Click or drag to resize
IRotaryEncoder Interface
The interface for a rotary encoder, which is a knob that can be turned indefinitely in either direction with discreet pules along each rotation. Rotary encoders also frequently include a pushbutton function.

Namespace: Microsoft.IoT.DeviceCore.Input
Assembly: Microsoft.IoT.DeviceCore (in Microsoft.IoT.DeviceCore.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public interface IRotaryEncoder : IPushButton, 
	IDevice, IClosable

The IRotaryEncoder type exposes the following members.

Properties
  NameDescription
Public propertyClickMode
Gets or sets a value that indicates when the Click event occurs.
(Inherited from IPushButton.)
Public propertyIsPressed
Gets a value that indicates if the button is pressed.
(Inherited from IPushButton.)
Top
Methods
  NameDescription
Public methodClose
Releases system resources that are exposed by a Windows Runtime object.
(Inherited from IClosable.)
Top
Events
  NameDescription
Public eventClick
Occurs when the button is clicked.
(Inherited from IPushButton.)
Public eventPressed
Occurs when the button is pressed.
(Inherited from IPushButton.)
Public eventReleased
Occurs when the button is released.
(Inherited from IPushButton.)
Public eventRotated
Occurs when the encoder is rotated.
Top
See Also