fixed usb mouse/keyboard detection
authordavilla <davilla@4pi.com>
Sat, 18 Aug 2012 15:19:49 +0000 (11:19 -0400)
committerTrent Nelson <trent.a.b.nelson@gmail.com>
Thu, 3 Oct 2013 14:56:17 +0000 (10:56 -0400)
Peripheral insertions and removals after boot weren't reflected.

xbmc/windowing/WinEventsLinux.h

index 00fa5e4..f6c8df0 100644 (file)
@@ -32,6 +32,11 @@ public:
   bool MessagePump();
   size_t GetQueueSize();
   void RefreshDevices();
+  void Notify(const Observable &obs, const ObservableMessage msg)
+  {
+    if (msg == ObservableMessagePeripheralsChanged)
+      RefreshDevices();
+  }
   static bool IsRemoteLowBattery();
 
 private: