Giving touch functionality to buttons.

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Hi,

      How do you pass the touch input to emWin?

      In general it is done by calling GUI_TOUCH_StoreStateEx() or GUI_PID_StoreState().

      In most cases we create a dedicated task which polls for touch and if present pass the touch coordinates to emWin.

      Attached is a brief example on this can be done (it is a PIDConf.c used for the STM32F746 Discovery).


        (1.34 kB, downloaded 60 times, last: )