From: Scott A. H. <he...@in...> - 2000-09-15 19:17:09
|
Thanks for the note, Christoph. Christoph Bartelmus wrote: > > Hi! > > Scott A. Herod "he...@in..." wrote: > > > discovering that the remote is very sensitive. irw usually records two > > signals for each firm button press. > > The remote always sends at least three signals for each button press. I've got a little libirman app. I wrote which essentially reproduces the functionality of irw. Watching events come in, I see three for what I consider a "firm" button press but if I am careful to just barely touch the remote button, I see only two. > > > Is there a simple way to add a longer delay between what is considered a > > single signal without digging into the code to do it myself? > > Why? Applications ignore repeated signals by default. (repeat = 0) I was finding that irxevent ( and irw ) would forward two events for each button press. My hack has been to go into the libirman code ( irfunc.c, line 166 to be exact ) and disable the reset that occurs when it receives a duplicate code. I also extended the wait time for a duplicate to 250 ms as I found that the three codes would extend slightly longer than 200 ms which was the default. What I probably should do is fix it so that after some pause, events are passed on so that channel or volume control repeats. In reality, that should be the responsibility of my main app. not the drivers, so probably I should tear my changes out of libirman and place them in the real app. ( when it exists ). Scott |