libwebsockets
Lightweight C library for HTML5 websockets
lws_button_regime Struct Reference

Data Fields

uint16_t ms_min_down
 
uint16_t ms_min_down_longpress
 
uint16_t ms_up_settle
 
uint16_t ms_doubleclick_grace
 
uint16_t ms_repeat_down
 
uint8_t flags
 

Field Documentation

◆ flags

uint8_t lws_button_regime::flags

when double-click classification is enabled, clicks are delayed by ms_min_down + ms_doubleclick_grace to wait and see if it will become a double-click. Set LWSBTNRGMFLAG_CLASSIFY_DOUBLECLICK to enable it or leave that bit at 0 to get faster single-click classification.


The documentation for this struct was generated from the following file: