On 16 March 2014 23:18, James Hogan <ja...@albanarts.com> wrote: > Fair enough. So changing the minimum rc5-sz masks to 0x3fff sounds reasonable > to allow toggle to be controlled. > > Just to clarify though, so you mean that the remote uses toggle=1 first (and > in repeat codes) unless you press it a second time (new keypress) within a > short amount of time? > I.e. like this? > Press message toggle=1 > repeat toggle=1 > repeat toggle=1 > unpress > Press message toggle=!last_toggle only if within X ms, 1 otherwise >
Actually studying this a little closer it seems that it indeed behaves like a "toggle": Press message toggle=1 repeat toggle=1 repeat toggle=1 unpress Press message toggle=!last_toggle, always So the toggle is inverted between presses and its value is kept during repeat. It however seems to behave a little bit sporadically here tending to set the toggle bit on more often than off. Anyway I think that allowing the toggle bit to be set in the scancode does not really hurt. I guess most of the time people will use the scancodes without the toggle bit. Br, -Antti -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html