Thursday, April 19th 2018, 11:24pm UTC+2

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.



Date of registration: Feb 27th 2018

Posts: 8


Wednesday, March 7th 2018, 11:08am

Giving touch functionality to buttons.


I created a keypad with buttons. But when i downloaded it to BSP board Iam not able to bring touch functionality to the same.Please help. I have taken available in this forum

SEGGER - Schoenen

Super Moderator

Date of registration: Aug 13th 2015

Posts: 561


Thursday, March 8th 2018, 11:30am


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).

SEGGER - Schoenen has attached the following file:
  • (1.34 kB - 29 times downloaded - Last download: Today, 11:21pm)