[visionegg] Re: collecting keyboard input
- From: "Chao Tang" <tang@xxxxxxxxxxx>
- To: <visionegg@xxxxxxxxxxxxx>
- Date: Tue, 9 May 2006 15:39:52 -0400
Hi,
You may use pygame.event to get what you want...see code snap bellow.
import pygame
# get one key press
for event in pygame.event.get():
# event.type and event.key are ready for you to use
if event.type == pygame.KEYDOWN:
...
if event.type == pygame.KEYUP:
...
HTH.
Chao
-----Original Message-----
From: visionegg-bounce@xxxxxxxxxxxxx
[mailto:visionegg-bounce@xxxxxxxxxxxxx]On Behalf Of Alessandro Gagliardi
Sent: Tuesday, May 09, 2006 3:09 PM
To: visionegg@xxxxxxxxxxxxx
Subject: [visionegg] collecting keyboard input
Hello Vision Egg users,
I'm currently designing an experiment in which I want to collect keyboard
input from a participant typing one word answers to questions. Obviously, I
would like their input echoed on the screen. Is there an easy way to do
this with Vision Egg? There is no way in the software that I'm currently
using, so I'm thinking of switching.
Thanks in advance,
--
Alessandro Gagliardi
Integrative Neuroscience
Rutgers University
alessandro@xxxxxxxxxxxxxx
- Follow-Ups:
- [visionegg] Re: collecting keyboard input
- From: Alessandro Gagliardi
- References:
- [visionegg] collecting keyboard input
- From: Alessandro Gagliardi
Other related posts:
- » [visionegg] collecting keyboard input
- » [visionegg] Re: collecting keyboard input
- » [visionegg] Re: collecting keyboard input
- » [visionegg] Re: collecting keyboard input
- » [visionegg] Re: collecting keyboard input
- » [visionegg] Re: collecting keyboard input
- [visionegg] Re: collecting keyboard input
- From: Alessandro Gagliardi
- [visionegg] collecting keyboard input
- From: Alessandro Gagliardi