ESP32-S3 Continuous Touch Slider Data

stwirth
Posts: 9
Joined: Tue Nov 23, 2021 11:11 am

ESP32-S3 Continuous Touch Slider Data

Postby stwirth » Tue Jun 18, 2024 2:37 pm

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
Last edited by stwirth on Wed Jun 19, 2024 11:10 pm, edited 2 times in total.

stwirth
Posts: 9
Joined: Tue Nov 23, 2021 11:11 am

Re: ESP32-S3 Continuous Touch Slider Data

Postby stwirth » Wed Jun 19, 2024 11:11 pm

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.

Who is online

Users browsing this forum: No registered users and 67 guests