[mythtv] LIRC question

Neale Swinnerton mythtv-dev.spam at isismanor.com
Mon Oct 31 11:28:10 EST 2005


> On Sun, 2005-10-30 at 21:11 -0500, Hal Burch wrote:
>> The remote control system seems a bit hackish, translating remote
>> events to keypress events.  Is this a conscience design, a result of
>> the recent addition of native LIRC support, or the result of the Lirc
>> library?
> Not really a conscious design AFAIC, but there has been at least one
> failed attempt to change this. The failed attempt didn't keep in mind
> that MythTV is a cross-platform application and tied keyboard input
> too tightly with Linux.

what about considering both the GUI (keyboard and mouse) and LIRC clients
of some command layer in myth e.g.

 -----------           -----------
|           |         |           |
|    GUI    |         |   LIRC    |
|           |         |           |
 -----------           -----------
      \                    /
 ---------------------------------
|        COMMAND LAYER            |
 ---------------------------------
                 |
 ----------------------------------
|            MYTH PROPER           |
 ----------------------------------


commands would be of the form 'set_aspect_ratio 4:3' or 'set_audiostretch
1.2' allowing every possible action to be configured.

You then map GUI actions to these commands and let Qt sort out the
platform specific stuff (Isn't this what Qt:Action is for) ?

LIRC maps key presses directly to these actions.


More information about the mythtv-dev mailing list