Skip to content
Permalink
Browse files

BF: new Kayborad class was returning negative durations (but correct …

…vals)

We were subtracting start-stop not stop-start!
  • Loading branch information...
peircej committed May 14, 2019
1 parent faa05d6 commit e43e474602b7f6c6f545623655a0badfe94e003a
Showing with 1 addition and 1 deletion.
  1. +1 −1 psychopy/hardware/keyboard.py
@@ -385,7 +385,7 @@ def _processEvts(self):
else:
for key in self._keysStillDown:
if key.code == evt['keycode']:
key.duration = key.tDown - evt['time']
key.duration = evt['time'] - key.tDown
self._keysStillDown.remove(key)
break # this key is done
else:

0 comments on commit e43e474

Please sign in to comment.
You can’t perform that action at this time.