[mythtv] patch to add native lirc support

Anduin Withers awithers at anduin.com
Tue Aug 5 05:52:15 EDT 2003


> thoughts?

Ignore multiple key sequences, did you ever experience a situation where
count > 1?

I think the larger issue may be "Is posting QKeyEvent the right way to do
this?".

I've been doing some digging in the Qt source and I'm not sure it is.

The patch you sent has problems other than those you list (the bit about
enter/esc when too far back). You can't navigate the setup dialogs or the
delete popup.

I was working on a patch and had things working better (still not good) but
Myth's use of modal dialogs (or rather Qts event model) pretty much stopped
me. The dialog event queue doesn't appear to process events posted to the
app queue and a few searches for ways to work around this didn't turn
anything obvious up.

I don't know how hated this would be but XSendEvent would seem to be a lot
easier in this case (apart from needing to reproduce portions of what
irxevent does for generating the XKeyEvent).

I whipped together a preliminary patch which did this (without the fancy
code to allow for Ctrl/Shift states) and it works as well as irxevent.

--
Anduin Withers




More information about the mythtv-dev mailing list