bug-xnee
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-xnee] Xnee with screenshot bug


From: Henrik Sandklef
Subject: Re: [Bug-xnee] Xnee with screenshot bug
Date: Tue, 13 Jan 2004 23:09:39 +0100

I modified your code a bit:


    while ( g_iCurrentOperation == 1)
    {       
      if ( fgets(buff,512,stream) == 0 ) continue;
      if ((event=CalcEvent(buff,&X,&Y)) != 0 )
      { 
        if ( (event->code<32) && (event->code>0))
          {
            std::cout<<event->code<<' '<<event->x<<' '<<event->y<<' '
                     <<event->button<<' '<<event->key<<' '
                     <<event->time<<'\n';
            
            if (generate) GetScreenShotIplImage();
            event=0;
          }        
      }
    }


Note the line:  if ( (event->code<32) && (event->code>0))



When compiling and testing xnee reports one keypress and one keyrelease
for every key I press!

If you test xnee standalone does the double-reported keys appear?

Can you give me information about your system!


/hesa


On Wed, 2003-12-03 at 18:08, Rychkov, Alexey wrote:
> Hello!
> 
> I don't know if it is a bug, but when I try to log keyboard and mouse events 
> with your program in a one process, and to grab screenshots after each 
> keyboard or mouse press, xnee reports two key press and key release events in 
> place of one.
> 
> I was making screenshots in 3 different ways (Qt, X11, imlib), result the 
> same.
> 
> The sample program is in attachement.
> 
> Thank you.
> 
> I look forward for your answer.
> 
> 
>  <<Makefile>>  <<recorder.ZIP>> 
> 
> ______________________________________________________________________
> _______________________________________________
> Bug-xnee mailing list
> address@hidden
> http://mail.nongnu.org/mailman/listinfo/bug-xnee





reply via email to

[Prev in Thread] Current Thread [Next in Thread]