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!!!!)
    • Hi,

      Thank you for reporting this issue. It will be fixed with the next version.

      For now, you can call GUI_GetKey() as a workaround to clear the buffer.

      Best regards,
      Florian
      Please read the forum rules before posting.

      Keep in mind, this is *not* a support forum.
      Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
      Should you be entitled to support you can contact us via our support system: segger.com/ticket/

      Or you can contact us via e-mail.