Skip to content

Commit

Permalink
BF: Keyboard class did not send a log message when clearing events
Browse files Browse the repository at this point in the history
This was causing problems for users who may think that keys were "missed" by PsychoPy
because they didn't realise the events were detected but then cleared
  • Loading branch information
peircej committed Apr 28, 2023
1 parent 384eb86 commit a3aa77f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions psychopy/hardware/keyboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@ def clearEvents(self, eventType=None):
else:
global event
event.clearEvents(eventType)
logging.info("Keyboard events cleared", obj=self)


class KeyPress(object):
Expand Down

0 comments on commit a3aa77f

Please sign in to comment.