[vtkusers] Iren->AddObserver( vtkCommand::KeyPressEvent, CallbackCommand );

tom fogal tfogal at apollo.sr.unh.edu
Tue Jun 15 10:51:28 EDT 2004


I would guess because you are holding down the keys a little?
Check the key repeat settings in your environment, and try making it slower;
does that fix the problem?

-tom

 <BAY99-F43IOGCvqQ7Sz00041071 at hotmail.com>"Louis Desjardins" writes:
>Hi there,
>
>Why is it then when I have:
>
>Iren->AddObserver( vtkCommand::KeyPressEvent, CallbackCommand );
>
>then when I press a character, the callback function happens 3 times, and 
>when I press Enter, or space bar, or Alt etc.. , then the callback gets 
>called 2 times..
>
>Why isn't the callback happening just once???



More information about the vtkusers mailing list