custom button mapping
This commit is contained in:
parent
c7372d21d2
commit
0d1d09bda5
|
@ -144,17 +144,17 @@ void app_key_double_tap(APP_KEY_STATUS *status, void *param) {
|
|||
if (!app_tws_ibrt_tws_link_connected()) {
|
||||
// No other bud paired
|
||||
TRACE(0, "Handling %s in single bud mode", __func__);
|
||||
send_next_track();
|
||||
send_vol_down();
|
||||
} else {
|
||||
// Bud's are working as a pair
|
||||
if (app_tws_is_left_side()) {
|
||||
TRACE(0, "Handling %s as left bud", __func__);
|
||||
// Lefty
|
||||
send_prev_track();
|
||||
send_vol_down();
|
||||
} else {
|
||||
TRACE(0, "Handling %s as right bud", __func__);
|
||||
// Righty
|
||||
send_next_track();
|
||||
send_vol_up();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -166,7 +166,7 @@ void app_key_triple_tap(APP_KEY_STATUS *status, void *param) {
|
|||
// No other bud paired
|
||||
TRACE(0, "Handling %s in single bud mode", __func__);
|
||||
send_vol_up();
|
||||
} else {
|
||||
}/* else {
|
||||
// Bud's are working as a pair
|
||||
if (app_tws_is_left_side()) {
|
||||
TRACE(0, "Handling %s as left bud", __func__);
|
||||
|
@ -177,9 +177,9 @@ void app_key_triple_tap(APP_KEY_STATUS *status, void *param) {
|
|||
// Righty
|
||||
send_vol_up();
|
||||
}
|
||||
}
|
||||
}*/
|
||||
}
|
||||
void app_key_quad_tap(APP_KEY_STATUS *status, void *param) {
|
||||
/*void app_key_quad_tap(APP_KEY_STATUS *status, void *param) {
|
||||
TRACE(2, "%s event %d", __func__, status->event);
|
||||
|
||||
if (!app_tws_ibrt_tws_link_connected()) {
|
||||
|
@ -196,7 +196,7 @@ void app_key_quad_tap(APP_KEY_STATUS *status, void *param) {
|
|||
// Righty
|
||||
}
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
void app_key_long_press_down(APP_KEY_STATUS *status, void *param) {
|
||||
TRACE(2, "%s event %d", __func__, status->event);
|
||||
|
@ -204,7 +204,7 @@ void app_key_long_press_down(APP_KEY_STATUS *status, void *param) {
|
|||
if (!app_tws_ibrt_tws_link_connected()) {
|
||||
// No other bud paired
|
||||
TRACE(0, "Handling %s in single bud mode", __func__);
|
||||
send_prev_track();
|
||||
//send_prev_track();
|
||||
} else {
|
||||
// Bud's are working as a pair
|
||||
app_anc_key(status, param);
|
||||
|
@ -231,10 +231,10 @@ void app_key_init(void) {
|
|||
"",
|
||||
app_key_triple_tap,
|
||||
NULL},
|
||||
{{APP_KEY_CODE_PWR, APP_KEY_EVENT_ULTRACLICK},
|
||||
/*{{APP_KEY_CODE_PWR, APP_KEY_EVENT_ULTRACLICK},
|
||||
"",
|
||||
app_key_quad_tap,
|
||||
NULL},
|
||||
NULL},*/
|
||||
{{APP_KEY_CODE_PWR, APP_KEY_EVENT_LONGPRESS},
|
||||
"",
|
||||
app_key_long_press_down,
|
||||
|
|
Loading…
Reference in New Issue