mirror of
https://github.com/ClusterM/fdskey.git
synced 2025-12-18 01:16:09 +01:00
24 lines
741 B
C
24 lines
741 B
C
#ifndef INC_BUTTONS_H_
|
|
#define INC_BUTTONS_H_
|
|
|
|
uint8_t button_up_holding();
|
|
uint8_t button_down_holding();
|
|
uint8_t button_left_holding();
|
|
uint8_t button_right_holding();
|
|
uint8_t button_up_newpress();
|
|
uint8_t button_down_newpress();
|
|
uint8_t button_left_newpress();
|
|
uint8_t button_right_newpress();
|
|
void button_left_right_repeat_enable(uint8_t enable);
|
|
void button_set_up_down_repeat_interval(uint32_t interval);
|
|
void button_set_left_right_repeat_interval(uint32_t interval);
|
|
uint32_t button_left_hold_time();
|
|
uint32_t button_right_hold_time();
|
|
void button_check_screen_off();
|
|
|
|
#define BUTTONS_REPEAT_TIME 500
|
|
#define BUTTONS_DEFAULT_UP_DOWN_REPEAT_INTERVAL 4
|
|
#define BUTTONS_DEFAULT_LEFT_RIGHT_REPEAT_INTERVAL 12
|
|
|
|
#endif /* INC_BUTTONS_H_ */
|