feat: Add acoustic and/or haptic feedback for touch events depending on radio settings (#2193)
This addresses issue #1778 (https://github.com/EdgeTX/edgetx/issues/1778) Select "All" in radio settings/radio setup/Sound/Mode for key and touch acoustic feedback and settings/radio setup/Haptic/Mode for key and touch haptic feedback. "NoKey" also disables touch feedback.
This commit is contained in:
@@ -209,8 +209,10 @@ extern "C" void touchDriverRead(lv_indev_drv_t *drv, lv_indev_data_t *data)
|
||||
copy_ts_to_indev_data(st, data);
|
||||
}
|
||||
|
||||
// Reset inactivity counters
|
||||
if (st.event != TE_NONE) { reset_inactivity(); }
|
||||
if (st.event == TE_UP) { // on Touch Up
|
||||
reset_inactivity(); // reset activity counter
|
||||
onKeyPress(); // provide acoustic and/or haptic feedback if requested in settings
|
||||
}
|
||||
|
||||
backup_touch_data(data);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user