On Tue 29.07.2003 at 09:43:30AM -0400, Aubin Paul wrote: > which pylirc are you using? I don't know if they made a release with > it yet, but Brian submitted some code to handle repeats properly. I > just don't know if Freevo deals with it properly.
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). 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 continues scrolling for several seconds (and far beyond the point you wanted to reach). What I have tried to implement is something which empties this buffer before waiting for the next repeated event, but the code is dirty, and sometimes it stops working for no obvious reason (i.e. it stops scrolling, and I have to press the key again to continue). But besides that it works more or less as expected (you actually have to stop pressing the key one item before the one you want to reach, because when you release the key, it still makes one jump to the next item). 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. 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
