Skip to content

BF: Keyboard event keys cleared properly#2442

Merged
peircej merged 1 commit intopsychopy:masterfrom
dvbridges:kbClearFix
May 9, 2019
Merged

BF: Keyboard event keys cleared properly#2442
peircej merged 1 commit intopsychopy:masterfrom
dvbridges:kbClearFix

Conversation

@dvbridges
Copy link
Contributor

KB was calling clearEvents to clear the key buffer, which only cleared the events list, not the
actual list of keys pressed. This means that keypresses persisted
even with the option to discard previous keypresses before KB onset
was selected. To fix, rather than have clearEvents call _clearEvents,
which other methods also call, the events and key list are cleared
directly.

KB was calling clearEvents, which only cleared the events list, not the
actual list of keys pressed. This means that keypresses persisted
even the option to discard previous keypresses before KB onset
 was selected. To fix, rather than have clearEvents call _clearEvents,
which other methods also call, the events and key list are cleared
 directly.
@coveralls
Copy link

coveralls commented May 8, 2019

Coverage Status

Coverage increased (+3.0e-05%) to 49.335% when pulling ed1cde1 on dvbridges:kbClearFix into 63e05e4 on psychopy:master.

@peircej peircej merged commit 11f9198 into psychopy:master May 9, 2019
@dvbridges dvbridges deleted the kbClearFix branch May 9, 2019 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants