On Wed 30.07.2003 at 09:09:58AM -0400, Aubin Paul wrote:
> On Wed, Jul 30, 2003 at 09:43:00AM +0300, Matthieu Weber wrote:
> > The one which is in the runtime, version I-don't-know-what. It actually
> > returns ['ENTER'] when I press Enter for the first time, and [] for the
> > repeated 'ENTER' events. But it does not give the repeat number, so that
> > counting the repeats has to be done inside Freevo (if you want to drop
> > every second repeat, because the IR repeat rate is to fast for you).
> 
> pylirc does return the repeatcount:
> 
> s = pylirc.nextcode(1)
> for (code) in s:
>     print "Command: %s, Repeat: %d" % (code["config"], code["repeat"])

OK. I had no pylirc doc when hacking that part of Freevo, so I did my
best to guess...
 
> > The other problem is buffering inside pylirc: the repeats are buffered
> > until they are used, meaning that if you scroll the TV guide by
> > continuously pressing one button, since jumping to the next TV Guide
> > item takes more time than the repeat rate, you will ``store'' more
> > repeats than you need, and when you release the key, the TV Guide
> 
> If you know the repeatcount, you can throw away repeats > X...

Actually not. If the action takes more time than the delay between two
repeats, the repeated IR event will be buffered, and the scrolling will
continue after the key is released. One solution would be to
calculate/measure X (from your example) so that the action never takes
more time than the interval between repeats. But this depends on the
processor speed, display adapter, python version, optimization and I
don't know what else.

I'll take a look at the pylirc CVS to make sure.

Matthieu
-- 
 (~._.~)        Matthieu Weber - Universit� de Jyv�skyl�         (~._.~)
  ( ? )                email : [EMAIL PROTECTED]                  ( ? ) 
 ()- -()               public key id : 452AE0AD                  ()- -()
 (_)-(_)  "Humor ist, wenn man trotzdem lacht (Germain Muller)"  (_)-(_)


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Freevo-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to