NobodyImportant
August 12th, 2005, 03:08 PM
First of all, many thanks to Mike and Dan for their tireless and patient assistance of this newbie.
Here's my new problem. I'm trying to control the volume on my AV receiver using a Snapstream Firefly, Girder, and a USB-UIRT. The UIRT learned the IR commands perfectly well, and the Girder programming was simple, even for me. Both Volume Up and Volume Down respond exactly as designed.
The only problem occurs when I hold down a key. I've mapped the Firefly Key Repeat events to the appropriate commands, so the USB-UIRT repeats the desired volume command when I hold the button down, since the Firefly is continuing to send Key Repeat events. But the rate at which the UIRT repeats a volume command is slower than the rate at which the Firefly sends the Key Repeat events. The result is that when I hold a button down and then release it, the UIRT continues to send commands to the receiver for several seconds, until it works through the queue of Key Repeat commands issued by the Firefly.
There are two ways I can think of to resolve this. The elegant way, I think, would be to take advantage of the Key Up events that the Firefly sends. Is there a way to program a command so that it triggers on a Key Down event and repeats indefinitely, until a Key Up event fires?
The less elegant way would be to manipulate the repeat delay of either the Firefly or the UIRT, until they're close to synchronized. Is there a way to discover the minimum repeat delay of the UIRT?
Here's my new problem. I'm trying to control the volume on my AV receiver using a Snapstream Firefly, Girder, and a USB-UIRT. The UIRT learned the IR commands perfectly well, and the Girder programming was simple, even for me. Both Volume Up and Volume Down respond exactly as designed.
The only problem occurs when I hold down a key. I've mapped the Firefly Key Repeat events to the appropriate commands, so the USB-UIRT repeats the desired volume command when I hold the button down, since the Firefly is continuing to send Key Repeat events. But the rate at which the UIRT repeats a volume command is slower than the rate at which the Firefly sends the Key Repeat events. The result is that when I hold a button down and then release it, the UIRT continues to send commands to the receiver for several seconds, until it works through the queue of Key Repeat commands issued by the Firefly.
There are two ways I can think of to resolve this. The elegant way, I think, would be to take advantage of the Key Up events that the Firefly sends. Is there a way to program a command so that it triggers on a Key Down event and repeats indefinitely, until a Key Up event fires?
The less elegant way would be to manipulate the repeat delay of either the Firefly or the UIRT, until they're close to synchronized. Is there a way to discover the minimum repeat delay of the UIRT?