Class: Flic::Protocol::Primitives::ClickType

Inherits:
Enum
  • Object
show all
Defined in:
lib/flic/protocol/primitives/click_type.rb

Overview

The type of click registered by a button

:button_down

The button was pressed.

:button_up

The button was released.

:button_click

The button was clicked, and was held for at most 1 second between press and release.

:button_single_click

The button was clicked once.

:button_double_click

The button was clicked twice. The time between the first and second press must be at most 0.5 seconds.

:button_hold

The button was held for at least 1 second.

Method Summary

Methods inherited from Enum

#get, max_octet, next_available_octet, octet_option, octets, option_octet, options, #set