# FlushEvents for PC

**URL:** <https://psychtoolbox.discourse.group/t/flushevents-for-pc/1247>\
**Category:** Uncategorized\
**Created:** [November 7, 2000, 7:36pm UTC](https://psychtoolbox.discourse.group/t/flushevents-for-pc/1247 "2000-11-07T19:36:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Allen\_Ingling](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@Allen\_Ingling](https://psychtoolbox.discourse.group/u/Allen_Ingling)\
**Post date:** [November 7, 2000, 7:36pm UTC](https://psychtoolbox.discourse.group/t/flushevents-for-pc/1247/1 "2000-11-07T19:36:00Z")

</div>

Hi all,  
  
Are there any plans for implementing the FlushEvents  
function for the PC version of the toolbox?  
  
Yoav.

---

<div class="post-metadata">

**Author:** ![Allen\_Ingling](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@Allen\_Ingling](https://psychtoolbox.discourse.group/u/Allen_Ingling)\
**Post date:** [November 8, 2000, 12:26am UTC](https://psychtoolbox.discourse.group/t/flushevents-for-pc/1247/2 "2000-11-08T00:26:40Z")

</div>

> \>Hi all,  
> \>  
> \>Are there any plans for implementing the FlushEvents  
> \>function for the PC version of the toolbox?

One of the big problems with the Windows version is  
that there is no CharAvail call. Getting a CharAvail  
to work is a relatively high priority. It is possible that at  
the time that gets fixed it will also be straightforward  
to implement FlushEvents. Depending on your application,  
having CharAvail may do what you want, since you  
can flush the keyboard queue by grabbing characters  
in a loop until none are available.  
  
DB
