mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-09 04:57:06 +03:00
working buttons (LMS only)
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
|
||||
typedef enum { BUTTON_PRESSED, BUTTON_RELEASED } button_event_e;
|
||||
typedef enum { BUTTON_NORMAL, BUTTON_SHIFTED } button_press_e;
|
||||
typedef void (*button_handler)(button_event_e event, button_press_e mode, bool long_press);
|
||||
typedef void (*button_handler)(void *id, button_event_e event, button_press_e mode, bool long_press);
|
||||
|
||||
/*
|
||||
set long_press to 0 for no long-press
|
||||
@@ -32,4 +32,4 @@ set shifter_gpio to -1 for no shift
|
||||
NOTE: shifter buttons *must* be created before shiftee
|
||||
*/
|
||||
|
||||
void button_create(int gpio, int type, bool pull, button_handler handler, int long_press, int shifter_gpio);
|
||||
void button_create(void *id, int gpio, int type, bool pull, button_handler handler, int long_press, int shifter_gpio);
|
||||
Reference in New Issue
Block a user