QB64 Phoenix Edition
Clearing the mouse and keyboard buffers - Printable Version

+- QB64 Phoenix Edition (https://qb64phoenix.com/forum)
+-- Forum: Chatting and Socializing (https://qb64phoenix.com/forum/forumdisplay.php?fid=11)
+--- Forum: General Discussion (https://qb64phoenix.com/forum/forumdisplay.php?fid=2)
+--- Thread: Clearing the mouse and keyboard buffers (/showthread.php?tid=2496)



Clearing the mouse and keyboard buffers - Donald Foster - 03-09-2024

Hello All,

Is there an easy way to clear the mouse and keyboard buffers?

Thank you.

 Donald


RE: Clearing the mouse and keyboard buffers - a740g - 03-09-2024

(03-09-2024, 07:02 AM)Donald Foster Wrote: Hello All,

Is there an easy way to clear the mouse and keyboard buffers?

Thank you.

 Donald
Use this.

Code: (Select All)
SUB ClearInput
    WHILE _MOUSEINPUT: WEND
    _KEYCLEAR
END SUB