I am unsure if this is the correct place for this question. I am attempting to obtain the axis position values from a joystick /dev/input/js0
on my system. If I run jstest /dev/input/js0
it will give me live feedback on all buttons and axis positions.
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.