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"])

> 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...

> If you want a patch for that, I can give it to you, but I wouldn't
> integrate it into Freevo unless it is working properly.

If you look at the pylirc CVS, there are some examples that might be
useful if you want to try that.

Aubin


-------------------------------------------------------
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