custom button config
This commit is contained in:
parent
56d75943a1
commit
1217e25c86
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue