Modify

Ticket #2239 (closed enhancement: wontfix)

Opened 6 years ago

Last modified 3 years ago

Patch to accept remote buttons as logical identifiers.

Reported by: navahogunleg@… Owned by: ijr
Priority: minor Milestone: 0.22
Component: mythtv Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

This patch allows MythTV to accept remote buttons (coming from LIRC) as logical identifiers. So in stead of configuring LIRC to map a button to a 'keypress', this patch will make the configured identifier to be correctly interpreted by Myth. ( As discussed in this thread: http://www.gossamer-threads.com/lists/mythtv/dev/207002#207002 )

Old way: begin prog = mythtv button = TV repeat = 3 config = X this keypress would reach Myth end

New way: begin prog = mythtv button = TV repeat = 3 config = remoteTV end

I wrote it so that if, in lircrc, a single character is found, this will still be interpreted as a keypress (i.e. it's downwards compatible).

(There's a known problem however, when Myth requests user input in an editbox, one hits a remote button, the text-identifier of that button will be inserted in that edit-box.)

Supplied is also the patch to recognise these in MythControls? so one can actually configure remote keypresses.

Attachments

mythtv-lirc-20060824.diff (22.8 KB) - added by anonymous 6 years ago.
mythcontrols-20060824.diff (3.9 KB) - added by anonymous 6 years ago.
mythcontrols-20060910.diff (3.9 KB) - added by navahogunleg@… 6 years ago.
Updated, bugfixed version: I noticed today MythControls? wasn't accepting regular keys now due to a wrongly placed 'else'. :]
myth_lirc_latest.diff.libmyth (3.5 KB) - added by navahogunleg@… 4 years ago.
Patch to make remoteXXXX identifiers work again in SVN version (using Qt4) [patch split up into files because of too many local changes]
myth_lirc_latest.diff.libmythtv (777 bytes) - added by navahogunleg@… 4 years ago.
See comment above.
mythkeysequence.h (2.6 KB) - added by navahogunleg@… 4 years ago.
New mythkeysequence.h & .cpp using Qt4, and using QStringList in stead of own (buggy) parsing routine.
mythkeysequence.cpp (4.6 KB) - added by navahogunleg@… 4 years ago.
See comment above (mythkeysequence.* files should reside in libmyth/).

Change History

Changed 6 years ago by anonymous

Changed 6 years ago by anonymous

comment:1 Changed 6 years ago by mythtv@…

See ticket #757 for an implementation of a very similar idea. Certainly, if this patch is accepted, #757 should be closed (and vice-versa, although the other ticket is old enough that I do not expect #757 to be accepted).

comment:2 Changed 6 years ago by stuartm

  • Owner changed from ijr to stuartm
  • Milestone set to 0.21

comment:3 Changed 6 years ago by stuartm

The approach used in #757 is slightly different in that it removes the need for a lircrc file. Neither these patches nor #757 will be used in their current form but I'll borrow code/ideas from both for the final implementation.

Changed 6 years ago by navahogunleg@…

Updated, bugfixed version: I noticed today MythControls? wasn't accepting regular keys now due to a wrongly placed 'else'. :]

comment:4 Changed 4 years ago by danielk

  • Version set to head
  • Milestone changed from 0.21 to 0.22

comment:5 Changed 4 years ago by stuartm

  • Owner changed from stuartm to ijr
  • Status changed from new to assigned

Changed 4 years ago by navahogunleg@…

Patch to make remoteXXXX identifiers work again in SVN version (using Qt4) [patch split up into files because of too many local changes]

Changed 4 years ago by navahogunleg@…

See comment above.

Changed 4 years ago by navahogunleg@…

New mythkeysequence.h & .cpp using Qt4, and using QStringList in stead of own (buggy) parsing routine.

Changed 4 years ago by navahogunleg@…

See comment above (mythkeysequence.* files should reside in libmyth/).

comment:6 Changed 3 years ago by danielk

  • Status changed from assigned to closed
  • Resolution set to wontfix

Stuart M may use some ideas from this, but this will not be committed as is. See very old discussions on mailing list as to why...

View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.