Reading Joystick Data into Another Program
I have a joystick connected to my Windows Vista box and I'm trying to read some data about its current position into another program (specifically, the coordinates of its 8 axes). I can see the values of all axes in the Game Controllers feature of the Control Panel. Any suggestions as to how I could go about reading this data into another app, or where it might be stored in the PC's memory? The "joystick" that I am referring to is a USB Plug-And-Play device (namely, #-Link-Snipped-#). That being said, I'm using a custom driver that allows the device to appear as a joystick, keyboard, and mouse to Windows. I'm trying to read the joystick's axis data into another Windows program (not one I wrote or a game, it's actually the software for a Human Machine Interface (HMI) called VersaView made by Rockwell Automation/Allen-Bradley). I don't believe there is an API available for the device that I could use.
Any suggestions 😀?
Thanks 😁!