muteki
Loading...
Searching...
No Matches
key_press_event_config_t Struct Reference

Configuration struct for key press event generator. More...

#include <event.h>

Data Fields

unsigned short long_press_delay
 Delay interval before triggering long press repeat.
 
unsigned short long_press_repeat_rate
 Repeat rate when long press repeat is triggered.
 
unsigned short beep_on_press
 Whether or not to beep on key/touchscreen presses.
 

Detailed Description

Configuration struct for key press event generator.

The generator is responsible for detecting long key presses and sending repeated "pressed" events when such long presses are detected.

The intervals below have the resolution of 25ms per step and the actual millisecond value needs to be calculated by using milliseconds = 25ms * (interval + 1). That is, setting the interval to 0 will give you 25ms of delay, setting it to 1 will give you 50ms, and so forth.

The beep_on_press value sets the system configuration variable 0x10 (SYS_CONFIG_BEEP_ON_EVENT) that will reflect in the settings app. This is, however, temporary and will reset when the user reboots the system.


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