title: Using ioctl to change value of autorepeat
body: <p>How can I use ioctl to change the value of auto-repeat for a given device in C?</p>
  
  <p>I know about</p>
  
  <pre><code>#define REP_DELAY               0x00
  #define REP_PERIOD              0x01
  </code></pre>
  
  <p>source: <a href="http://lxr.free-electrons.com/source/include/uapi/linux/input.h#L931" rel="nofollow">http://lxr.free-electrons.com/source/include/uapi/linux/input.h#L931</a></p>
  
  <p>I didn't find any tutorial or documentation about these things.
  This question is not vague, it is actually just about using ioctl with REP_DELAY and REP_PERIOD.
  How can I use them with ioctl?</p>