Skip to main content
prathima
Associate III
Mar 6, 2020 10:30 AM UTC
Question

DOUBLE CLICK ON STM32L4R9AI_EVAL

Hello..

How to implement double click/double tap on STM32L4R9AI-EVAL board

This topic has been closed for replies.

4 replies

Martin KJELDSEN
Principal III
Mar 6, 2020 12:20 PM UTC

On a particular widget? Or an entire screen? More details!

/Martin

prathima
prathimaAuthor
Associate III
Mar 8, 2020 1:39 PM UTC

Double click on entire screen?........

prathima
prathimaAuthor
Associate III
Mar 12, 2020 5:51 AM UTC

How to implement double click?i want the example code?Do you have any example code?

Thank you.....

Martin KJELDSEN
Principal III
Mar 13, 2020 11:54 AM UTC

Double "clicking" on something is pretty uncommon so we don't have an example :) But it should be easy to implement - Inherit from Button and create your own handleClickEvent() handler that registers itself as a timer-widget to receive ticks. Then just keep track of the threshhold that you want to use to register a "double click". Search this forum on how to use time aware widgets. I just something similar in another post.

Search for "registerTimerWidget".

/Martin