From 1217e25c86983c8314271dbe937692706156daa3 Mon Sep 17 00:00:00 2001 From: Rudis Muiznieks Date: Thu, 29 Dec 2022 08:14:52 -0600 Subject: [PATCH] custom button config --- apps/main/apps.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/main/apps.cpp b/apps/main/apps.cpp index 09e4cd6..74207b2 100644 --- a/apps/main/apps.cpp +++ b/apps/main/apps.cpp @@ -1387,7 +1387,7 @@ void app_latency_switch_key_handler(void) */ void send_vol_up(void){ - uint8_t action[] = {IBRT_ACTION_LOCAL_VOLUP}; + uint8_t action[] = {IBRT_ACTION_AVRCP_VOLUP}; app_ibrt_if_start_user_action(action, sizeof(action)); } void send_play_pause(void){ @@ -1400,7 +1400,7 @@ void send_play_pause(void){ } } void send_vol_down(void){ - uint8_t action[] = {IBRT_ACTION_LOCAL_VOLDN}; + uint8_t action[] = {IBRT_ACTION_AVRCP_VOLDN}; app_ibrt_if_start_user_action(action, sizeof(action)); } @@ -1526,12 +1526,12 @@ void app_key_init(void) TRACE(1,"%s",__func__); const APP_KEY_HANDLE key_cfg[] = { - - {{APP_KEY_CODE_PWR,APP_KEY_EVENT_CLICK},"",app_key_single_tap, NULL}, - {{APP_KEY_CODE_PWR,APP_KEY_EVENT_DOUBLECLICK},"",app_key_double_tap, NULL}, + {{APP_KEY_CODE_PWR,APP_KEY_EVENT_CLICK},"",app_key_triple_tap, NULL}, + /*{{APP_KEY_CODE_PWR,APP_KEY_EVENT_DOUBLECLICK},"",app_key_double_tap, NULL}, {{APP_KEY_CODE_PWR,APP_KEY_EVENT_TRIPLECLICK},"",app_key_triple_tap, NULL}, {{APP_KEY_CODE_PWR,APP_KEY_EVENT_ULTRACLICK},"",app_key_quad_tap, NULL}, - {{APP_KEY_CODE_PWR,APP_KEY_EVENT_LONGPRESS},"",app_key_long_press_down, NULL}, + {{APP_KEY_CODE_PWR,APP_KEY_EVENT_LONGPRESS},"",app_key_long_press_down, NULL},*/ + {{APP_KEY_CODE_PWR,APP_KEY_EVENT_LONGLONGPRESS},"",app_key_reboot, NULL}, }; app_key_handle_clear();