Mouse release event not properly processed in pyglet windows

36 views
Skip to first unread message

yonid...@gmail.com

unread,
Dec 20, 2010, 1:28:04 PM12/20/10
to psychopy-users
It seems that when I create a default window, mouse.getPressed() does
not work correctly: once the left button is pressed, getPressed()[0]
stays 1 even when the button is released. This is fixed if I force the
window to be of "pygame" type.

Jon Peirce

unread,
Dec 22, 2010, 7:59:45 AM12/22/10
to psychop...@googlegroups.com
Sorry about that. Looks like I made a copy-paste error while adding
logging options to mouse. You can fix it by going into event.py and
changing lines 62-64 to set button values to 0

Thanks for spotting it.

Jon


Jon

--
Jonathan Peirce
http://www.peirce.org.uk

> --
> You received this message because you are subscribed to the Google Groups "psychopy-users" group.
> To post to this group, send email to psychop...@googlegroups.com.
> To unsubscribe from this group, send email to psychopy-user...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/psychopy-users?hl=en.
>

Reply all
Reply to author
Forward
Message has been deleted
0 new messages