I would start by looking at the articles on this site about joysticks :
Search for Joysticks at CodeProject[
^]
That will show you how the interfaces work. Once you understand that then you should be able to implement your own interface. That is, if I understand what you are asking and I am not entirely certain that I do.