yavna beginner
Joined: 22 Jan 2008 Posts: 6 Location: Rostov-on-Don, Russia
|
Posted: 28.10.2008, 11:43 Post subject: Visual psychophisics tasks with pilib |
|
|
Hello friends! Sorry for my English(: I want to report about using visual psichophisics tasks with pilib. Small modification of gkwindow.c makes it possible:
1) full-screen mode sets by gtk_window_fullscreen() function (I use istate parameter to set this mode)
2) to parse key events I use gtk_signal_connect() function with "key-press-event" parameter. It's requires small modifications of gkcbset.c file. I wrote new callback for processing key event
gint gkcbset3(GtkWidget *window, GdkEvent *event, int *ivar)
{
if (event->any.type == GDK_KEY_PRESS)
*ivar = event->key.keyval;
return(TRUE);
}
this callback connects with new parameter of gkwindow() ("ievt") by calling
gtk_signal_connect(GTK_OBJECT(*window), "key-press-event", GTK_SIGNAL_FUNC(gkcbset3), ievt);
ievt variable contains code of key pressed |
|