title: Getting live info from /dev/input
body: <p>I am unsure if this is the correct place for this question. I am attempting to obtain the axis position values from a joystick <code>/dev/input/js0</code> on my system. If I run <code>jstest /dev/input/js0</code> it will give me live feedback on all buttons and axis positions.</p>
  
  <p>I am trying to feed this information into my C program to control servos. Is there a function for doing this? I have not worked much with input devices in programming so this is all new to me. </p>