[mythtv] patch to add native lirc support
Anduin Withers
awithers at anduin.com
Mon Aug 4 21:25:45 EDT 2003
Patch to the lirc patch to make it cerr a message when it fails to create a
key sequence from the string lircd sends.
Why? Easier to debug your lircrc when you have feedback (other than it not
working).
I know it seems lame but I think it makes transitioning from irxevent easier
(with QKeySequence Space != space and Escape != Esc, etc).
--
Anduin Withers
-------------- next part --------------
Index: lirc.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/libs/libmyth/lirc.cpp,v
retrieving revision 1.1
diff -u -r1.1 lirc.cpp
--- lirc.cpp 4 Aug 2003 22:09:43 -0000 1.1
+++ lirc.cpp 5 Aug 2003 03:13:28 -0000
@@ -58,6 +58,13 @@
code != NULL)
{
QKeySequence a(code);
+
+ if (!a.count()) {
+ cerr << "LircClient warning: attempt to convert '" << code <<
+ "' to a key sequence failed. Fix your key mappings." <<
+ endl;
+ }
+
for (unsigned int i = 0; i < a.count(); i++)
{
int mod = a[i] & MODIFIER_MASK;
More information about the mythtv-dev
mailing list