lpcware

what's difference between  GUI_KEY_ENTER and touch Click?

Discussion created by lpcware Employee on Jun 15, 2016
Content originally posted in LPCWare by Mori_64 on Fri May 16 08:08:29 MST 2014
Hello all
I have a Button that in it's call back routine a new window will create .



this new window is a kind of notification and I need to do nothing until the user click one of buttons .


i use "GUI_WaitKey();" .


When ever I click by touch it works fine but when i use keypad "GUI_KEY_ENTER" it cause muc hangs .


case WM_NOTIFICATION_RELEASED:
CreateNotification("Are you Sure you want to delete ? ");
GUI_WaitKey();
if(Notification_answ==GUI_ID_YES)
..
....


when i debug my code it stopped at this line:
U32 GUI_X_GetTaskId(void) { return 0; /*(U32)OS_GetTaskID();*/ }

Regards

Outcomes