Forum Discussion
GUIX touch thread not working
Hello,
I have design a some screen for LCD using GUIX and ported it on IAR. I am using MIMXRT1052 controller. I have created some case to handle the touch event but the pointer is not going there. I have tested the touch by different program.
I wrote the code for touch as shown bellow.
UINT thermo_screen_event_handler(GX_WINDOW *widget, GX_EVENT *event_ptr)
{
switch(event_ptr->gx_event_type)
{
case GX_EVENT_SHOW:
gx_window_event_process(widget, event_ptr);
break;
case GX_SIGNAL(ID_UP_BTN, GX_EVENT_CLICKED):
i_temperature++;
set_temperature_value();
break;
case GX_SIGNAL(ID_DOWN_BTN, GX_EVENT_CLICKED):
i_temperature--;
set_temperature_value();
break;
case GX_SIGNAL(ID_MENU_BTN, GX_EVENT_CLICKED):
gx_widget_attach((GX_WIDGET *)widget, &menu_screen);
break;
default:
return gx_window_event_process(widget, event_ptr);
}
return 0;
}
Is it correct. Please provide me a solution to fix this. Please let me know if you want some additional information also.