Martin Donlon "wickerwaka@..." wrote:
> This may apply to all hid devices, but my experience is with the macmini
> driver. I'm using lirc-0.8.6 on a macmini running Arch Linux along with a
> Harmony 900 remote controlled. The Plex media player profile for the 900
> doesn't send any special repeat codes or use any toggle bits. The macmini
> driver sets the repeat_flag for any repeated code, so pressing the same
> button multiple times is interpreted as a single repeated keypress. Each
> keypress within one second actually, since the repeat_flag is overridden in
> set_code() if the time between keypresses is greater than one second.
> Modifying the gap settings in the conf file made no difference, since
> map_gap() isn't called by hiddev_decode. The attached patch modifies the hid
> drivers so they can optionally call map_gap in hiddev_decode, by setting
> repeat_state to RPT_UNKNOWN. If the record function sets repeat_state to
> RPT_NO or RPT_YES then map_gap will not be called and the repeat_flag will
> be set appropriately. Its only tested and enabled for the macmini driver and
> I'm not sure if it applies to other drivers.
Applied to CVS. I've just changed the code to always use map_gap.