title: Qt app: To detect hotpluggable USB Keyboard and Mouse
body: <p>I am developing a Qt application that runs on Embedded Linux (on i.Mx6 Platform). My application should work with the input devices: USB Keyboard, USB Mouse and Touchscreen(default). My device uses mdev utility to configure the input devices and my <strong>/etc/mdev.conf</strong> looks like this: </p>
  
  <pre><code>event[0-9]* root:root 660 &gt;input/
  </code></pre>
  
  <p>Everything is working fine, if I connect all the input devices to my target on bootup. And the order of the eventIDs Linux kernel is allotting to the input devices are as below:</p>
  
  <pre><code>/dev/input/event0         - USB Keyboard.
  /dev/input/event1         - USB Mouse.
  /dev/input/event2         - Touch Screen.
  </code></pre>
  
  <p>But these Ids are dynamically assigned by the kernel, and I want to implement a way to set these devices to have fixed ID all the time whether the devices are all connected on bootup, or after bootup. I read about this online, and all folks suggested me to <code>use udev and set Symlinks</code> to the devices. </p>
  
  <p>I am pretty new to Linux, and I feel our system uses <strong>mdev</strong> for device management. Can I achieve what I need using mdev utility, any help on this is much appreciated. Thanks in advance. </p>