gnome-lirc-properties r64 - in trunk: . gnome_lirc_properties



Author: hadess
Date: Fri Oct 17 06:49:16 2008
New Revision: 64
URL: http://svn.gnome.org/viewvc/gnome-lirc-properties?rev=64&view=rev

Log:
2008-10-17  Bastien Nocera  <hadess hadess net>

	* gnome_lirc_properties/hardware.py: The Logitech Mini-Receivers, when
	in HID mode, only show a portion of the keys on this interface (with a
	separate keyboard and mouse still visible).  We shouldn't try to
	configure that device (Closes: #541104)



Modified:
   trunk/ChangeLog
   trunk/gnome_lirc_properties/hardware.py

Modified: trunk/gnome_lirc_properties/hardware.py
==============================================================================
--- trunk/gnome_lirc_properties/hardware.py	(original)
+++ trunk/gnome_lirc_properties/hardware.py	Fri Oct 17 06:49:16 2008
@@ -187,6 +187,12 @@
                 keys = [int(value, 16) for value in keys.split()]
                 keys = decode_bitmap(keys)
 
+		# The Logitech Mini-Receivers, when in HID mode, only show
+		# a portion of the keys on this interface (with a separate keyboard
+		# and mouse still visible). We shouldn't try to configure that device
+		if str(self['info.product']).startswith('Logitech ') and len >= 70:
+		    return True
+
                 # check that at least 85 key-codes are supported:
                 if len(keys) >= 85:
                     return True



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]