Skip to content

Commit

Permalink
DOCS: added documentation for Keyboard.clearEvents
Browse files Browse the repository at this point in the history
  • Loading branch information
peircej committed Apr 28, 2023
1 parent a3aa77f commit 9126f65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion psychopy/hardware/keyboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ def waitKeys(self, maxWait=float('inf'), keyList=None, waitRelease=True,
return None

def clearEvents(self, eventType=None):
""""""
"""Clear the events from the Keyboard such as previous key presses"""
if Keyboard._backend == 'ptb':
for buffer in self._buffers.values():
buffer.flush() # flush the device events to the soft buffer
Expand Down

0 comments on commit 9126f65

Please sign in to comment.