[mythtv] Reconfigurable keybindings (was: LIRC support)
Joseph A. Caputo
jcaputo1 at comcast.net
Wed Feb 26 12:47:41 EST 2003
Yes, I understand this is how irxevent works; however irxevent is kind
of a workaround for X applications that don't have their own LIRC
support. As soon as you build in LIRC support, you have to stop using
irxevent, or you'll be getting more than one event for each remote code
(one X event through irxevent, and one LIRC event directoy to the
application). Of course, the nice thing about direct LIRC support is
that you could support events that are independent of the current
window; for instance you might have a button that activates LiveTV
regardless of where you currently are in the menu hierarchy. The
problem is, of course, that you then need a way to filter out events
when you DON'T want them; for instance if MPlayer is in the foreground
then Myth should ignore all LIRC events.
It's entirely possible that your configurable keybindings will introduce
enough versatility as to make direct LIRC support unnecessary -- for
now. irxevent is certainly a simple solution for now, but it is only
valid under X. What happens if Myth starts supporting non-X displays
like the framebuffer? An interesting problem, to say the least.
> Date: Wed, 26 Feb 2003 16:09:29 +0100
> From: Erik Arendse <erik_nospam.arendse at bigfoot.com>
> Subject: Re: [mythtv] Reconfigurable keybindings (was: LIRC support)
> At 24-2-03 19:35, Joseph A. Caputo wrote:
> >Okay, I'll hold off. Can't wait to see the configurable keybinding
> >Another issue that occurred to me is how to make a Myth
> >application/module ignore LIRC events when it's not the foreground app.
> >I.e., how will mythfrontend know to ignore remote codes when mythmusic,
> >mythgallery, or something like MPlayer or Xine is running? Maybe you've
> >addressed this already; I'll wait & see.
> AFAIK irxevent just simulates a key-event going to the window in focus.
> Which means when MythGallery is running and has focus it will receive the
> keyevent, and the same for MythTV, Mplayer, Xine etc. No effort needed on
> my behalf, just normal application behaviour.
More information about the mythtv-dev