[mythtv] patch to add native lirc support
dconti at acm.wwu.edu
Wed Aug 6 20:48:42 EDT 2003
Thanks for this, it does work properly with qt 3.0.
> -----Original Message-----
> From: mythtv-dev-bounces at mythtv.org
> [mailto:mythtv-dev-bounces at mythtv.org]On Behalf Of Anduin Withers
> Sent: Wednesday, August 06, 2003 2:39 AM
> To: Development of mythtv
> Subject: RE: [mythtv] patch to add native lirc support
> > Using XSendEvent would be mostly OK, but it'd be nice to do it inside of
> > for, say, the Qt/Embedded support =)
> Attached is a patch with my best attempt at doing this without XSendEvent.
> The reason I suggested going directly to X was that I couldn't
> find a clean
> Qt approach. I still can't but the attached patch seems to work,
> (it should
> also work with Qt 3.0, tested as much as one can without really
> reverting to
> Qt 3.0). There is no "clean" interface to insert keyboard events from
> another thread that I can find in Qt (Qt/Embedded seems to have something
> XSendEvent may seem all dirty and raw but after tromping through the way
> keyboard handling is done in Qt, XSendEvent starts to look
> downright clean.
> Note: The special escape key handling is necessary so that you don't get
> stuck on some widgets (combo/edit boxes).
> Known bug: The left/right keys behave poorly in edit boxes (at
> least the one
> where you enter your system shutdown command).
> Uneasiness: can't lock qApp. The modal event loop locks that sucker tight.
> That said... it works rather nicely for me.
> Anduin Withers
More information about the mythtv-dev