GUI_ClearKeyBuffer();Why is it not clear key buffer??

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

    • GUI_ClearKeyBuffer();Why is it not clear key buffer??

      Why is it not clear key buffer??

      example:

      int key_value = 0;

      GUI_StoreKeyMsg(0x21, 1);
      //GUI_SendKeyMsg(0x21, 1);
      //GUI_StoreKey(0x21);
      GUI_Exec();
      GUI_ClearKeyBuffer();
      GUI_Exec();
      GUI_Delay(1000);
      key_value = GUI_GetKey();

      (the key_value is 0x21!!!!)