media_button_length_t
Timeframes a media button is held down for.
Synopsis:
#include <bps/mediacommon.h>
typedef enum {
MEDIA_BUTTON_LENGTH_UNRECOGNIZED = 0
MEDIA_BUTTON_LENGTH_SHORT = 1
MEDIA_BUTTON_LENGTH_MEDIUM = 2
MEDIA_BUTTON_LENGTH_LONG = 3
} media_button_length_t;
Data:
- MEDIA_BUTTON_LENGTH_UNRECOGNIZED
- An unrecognized length (not one listed below).
- MEDIA_BUTTON_LENGTH_SHORT
- The button is held for a short length of time (less than 600 ms).
- MEDIA_BUTTON_LENGTH_MEDIUM
- The button is held for a medium length of time (more than 600 ms but less than 20 s).
- MEDIA_BUTTON_LENGTH_LONG
- The button is held for a long length of time (more than 20 s).
Library:
libbpsDescription:
This enumeration defines the length of time a media button can be held down for.