Page 1 of 1

ESP32-S3 Continuous Touch Slider Data

Posted: Tue Jun 18, 2024 2:37 pm
by stwirth
Hi,
I'm using the touch slider API from IDF v5.1 with an ESP32-S3 and I'd like to get a continuous slide position update while the user is sliding the finger over the touch slide.
Using

Code: Select all

touch_slider_subscribe_event
I get a callback when the slide is touched and released, but the callback is not called during a sliding operation. Even when subscribing to

Code: Select all

TOUCH_SLIDER_EVT_ON_CALCULATION
I don't get additional callback invocations during slide operations.
I also don't see any API about getting the current slide position, so I can't get a regular update.
Is there a way to use the touch slide API to get a continuous position update while the user is sliding the finger over the touch slide?

Thanks,
Stephan

Re: ESP32-S3 Continuous Touch Slider Data

Posted: Wed Jun 19, 2024 11:11 pm
by stwirth
I realized I had used the wrong constant for the event subscription. When subscribing to TOUCH_SLIDER_EVT_ON_CALCULATION I get continuous updates during sliding operations.