pilib Forum Index pilib
pilib forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Visual psychophisics tasks with pilib

 
Post new topic   Reply to topic    pilib Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
yavna
beginner


Joined: 22 Jan 2008
Posts: 6
Location: Rostov-on-Don, Russia

PostPosted: 28.10.2008, 11:43    Post subject: Visual psychophisics tasks with pilib Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    pilib Forum Index -> General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
SourceForge.net Logo